Package com.xero.models.payrollau
Enum CalendarType
- java.lang.Object
-
- java.lang.Enum<CalendarType>
-
- com.xero.models.payrollau.CalendarType
-
- All Implemented Interfaces:
Serializable,Comparable<CalendarType>
public enum CalendarType extends Enum<CalendarType>
Gets or Sets CalendarType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORTNIGHTLYFORTNIGHTLYFOURWEEKLYFOURWEEKLYMONTHLYMONTHLYQUARTERLYQUARTERLYTWICEMONTHLYTWICEMONTHLYWEEKLYWEEKLY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CalendarTypefromValue(String value)fromValueStringgetValue()StringtoString()toStringstatic CalendarTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CalendarType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEEKLY
public static final CalendarType WEEKLY
WEEKLY
-
FORTNIGHTLY
public static final CalendarType FORTNIGHTLY
FORTNIGHTLY
-
FOURWEEKLY
public static final CalendarType FOURWEEKLY
FOURWEEKLY
-
MONTHLY
public static final CalendarType MONTHLY
MONTHLY
-
TWICEMONTHLY
public static final CalendarType TWICEMONTHLY
TWICEMONTHLY
-
QUARTERLY
public static final CalendarType QUARTERLY
QUARTERLY
-
-
Method Detail
-
values
public static CalendarType[] 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 (CalendarType c : CalendarType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CalendarType 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<CalendarType>- Returns:
- String value
-
fromValue
public static CalendarType fromValue(String value)
fromValue- Parameters:
value- String
-
-