Enum HolidayCycleType
- java.lang.Object
-
- java.lang.Enum<HolidayCycleType>
-
- de.focus_shift.jollyday.jackson.mapping.HolidayCycleType
-
- All Implemented Interfaces:
Serializable,Comparable<HolidayCycleType>
public enum HolidayCycleType extends Enum<HolidayCycleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVEN_YEARSEVERY_YEARFIVE_YEARSFOUR_YEARSODD_YEARSSIX_YEARSTHREE_YEARSTWO_YEARS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HolidayCycleTypefromValue(String v)Stringvalue()static HolidayCycleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static HolidayCycleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVERY_YEAR
public static final HolidayCycleType EVERY_YEAR
-
TWO_YEARS
public static final HolidayCycleType TWO_YEARS
-
THREE_YEARS
public static final HolidayCycleType THREE_YEARS
-
FOUR_YEARS
public static final HolidayCycleType FOUR_YEARS
-
FIVE_YEARS
public static final HolidayCycleType FIVE_YEARS
-
SIX_YEARS
public static final HolidayCycleType SIX_YEARS
-
ODD_YEARS
public static final HolidayCycleType ODD_YEARS
-
EVEN_YEARS
public static final HolidayCycleType EVEN_YEARS
-
-
Method Detail
-
values
public static HolidayCycleType[] 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 (HolidayCycleType c : HolidayCycleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HolidayCycleType 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
-
value
public String value()
-
fromValue
public static HolidayCycleType fromValue(String v)
-
-