Package com.xero.models.payrollau
Enum EarningsType
- java.lang.Object
-
- java.lang.Enum<EarningsType>
-
- com.xero.models.payrollau.EarningsType
-
- All Implemented Interfaces:
Serializable,Comparable<EarningsType>
public enum EarningsType extends Enum<EarningsType>
Gets or Sets EarningsType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWANCEALLOWANCEBONUSESANDCOMMISSIONSBONUSESANDCOMMISSIONSEMPLOYMENTTERMINATIONPAYMENTEMPLOYMENTTERMINATIONPAYMENTFIXEDFIXEDLUMPSUMALUMPSUMALUMPSUMBLUMPSUMBLUMPSUMDLUMPSUMDLUMPSUMELUMPSUMEORDINARYTIMEEARNINGSORDINARYTIMEEARNINGSOVERTIMEEARNINGSOVERTIMEEARNINGS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EarningsTypefromValue(String value)fromValueStringgetValue()StringtoString()toStringstatic EarningsTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EarningsType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED
public static final EarningsType FIXED
FIXED
-
ORDINARYTIMEEARNINGS
public static final EarningsType ORDINARYTIMEEARNINGS
ORDINARYTIMEEARNINGS
-
OVERTIMEEARNINGS
public static final EarningsType OVERTIMEEARNINGS
OVERTIMEEARNINGS
-
ALLOWANCE
public static final EarningsType ALLOWANCE
ALLOWANCE
-
LUMPSUMD
public static final EarningsType LUMPSUMD
LUMPSUMD
-
EMPLOYMENTTERMINATIONPAYMENT
public static final EarningsType EMPLOYMENTTERMINATIONPAYMENT
EMPLOYMENTTERMINATIONPAYMENT
-
LUMPSUMA
public static final EarningsType LUMPSUMA
LUMPSUMA
-
LUMPSUMB
public static final EarningsType LUMPSUMB
LUMPSUMB
-
BONUSESANDCOMMISSIONS
public static final EarningsType BONUSESANDCOMMISSIONS
BONUSESANDCOMMISSIONS
-
LUMPSUME
public static final EarningsType LUMPSUME
LUMPSUME
-
-
Method Detail
-
values
public static EarningsType[] 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 (EarningsType c : EarningsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EarningsType 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<EarningsType>- Returns:
- String value
-
fromValue
public static EarningsType fromValue(String value)
fromValue- Parameters:
value- String
-
-