Package com.xero.models.payrollau
Enum AllowanceType
- java.lang.Object
-
- java.lang.Enum<AllowanceType>
-
- com.xero.models.payrollau.AllowanceType
-
- All Implemented Interfaces:
Serializable,Comparable<AllowanceType>
public enum AllowanceType extends Enum<AllowanceType>
Gets or Sets AllowanceType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AllowanceTypefromValue(String value)fromValueStringgetValue()StringtoString()toStringstatic AllowanceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AllowanceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CAR
public static final AllowanceType CAR
CAR
-
TRANSPORT
public static final AllowanceType TRANSPORT
TRANSPORT
-
TRAVEL
public static final AllowanceType TRAVEL
TRAVEL
-
LAUNDRY
public static final AllowanceType LAUNDRY
LAUNDRY
-
MEALS
public static final AllowanceType MEALS
MEALS
-
JOBKEEPER
public static final AllowanceType JOBKEEPER
JOBKEEPER
-
OTHER
public static final AllowanceType OTHER
OTHER
-
-
Method Detail
-
values
public static AllowanceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AllowanceType c : AllowanceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AllowanceType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<AllowanceType>- Returns:
- String value
-
fromValue
public static AllowanceType fromValue(String value)
fromValue- Parameters:
value- String
-
-