Package com.xero.models.accounting
Enum Schedule.UnitEnum
- java.lang.Object
-
- java.lang.Enum<Schedule.UnitEnum>
-
- com.xero.models.accounting.Schedule.UnitEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Schedule.UnitEnum>
- Enclosing class:
- Schedule
public static enum Schedule.UnitEnum extends Enum<Schedule.UnitEnum>
One of the following - WEEKLY or MONTHLY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Schedule.UnitEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic Schedule.UnitEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static Schedule.UnitEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEEKLY
public static final Schedule.UnitEnum WEEKLY
WEEKLY
-
MONTHLY
public static final Schedule.UnitEnum MONTHLY
MONTHLY
-
-
Method Detail
-
values
public static Schedule.UnitEnum[] 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 (Schedule.UnitEnum c : Schedule.UnitEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Schedule.UnitEnum 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<Schedule.UnitEnum>- Returns:
- String value
-
fromValue
public static Schedule.UnitEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-