Package com.xero.models.payrollnz
Enum EarningsRate.RateTypeEnum
- java.lang.Object
-
- java.lang.Enum<EarningsRate.RateTypeEnum>
-
- com.xero.models.payrollnz.EarningsRate.RateTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<EarningsRate.RateTypeEnum>
- Enclosing class:
- EarningsRate
public static enum EarningsRate.RateTypeEnum extends Enum<EarningsRate.RateTypeEnum>
Indicates the type of the earning rate
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIXEDAMOUNTFIXEDAMOUNTMULTIPLEOFORDINARYEARNINGSRATEMULTIPLEOFORDINARYEARNINGSRATERATEPERUNITRATEPERUNIT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EarningsRate.RateTypeEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic EarningsRate.RateTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static EarningsRate.RateTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RATEPERUNIT
public static final EarningsRate.RateTypeEnum RATEPERUNIT
RATEPERUNIT
-
MULTIPLEOFORDINARYEARNINGSRATE
public static final EarningsRate.RateTypeEnum MULTIPLEOFORDINARYEARNINGSRATE
MULTIPLEOFORDINARYEARNINGSRATE
-
FIXEDAMOUNT
public static final EarningsRate.RateTypeEnum FIXEDAMOUNT
FIXEDAMOUNT
-
-
Method Detail
-
values
public static EarningsRate.RateTypeEnum[] 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 (EarningsRate.RateTypeEnum c : EarningsRate.RateTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EarningsRate.RateTypeEnum 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()
getValue- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<EarningsRate.RateTypeEnum>- Returns:
- String value
-
fromValue
public static EarningsRate.RateTypeEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-