Package de.focus_shift.spi
Enum ChristianHolidayType
- java.lang.Object
-
- java.lang.Enum<ChristianHolidayType>
-
- de.focus_shift.spi.ChristianHolidayType
-
- All Implemented Interfaces:
Serializable,Comparable<ChristianHolidayType>
public enum ChristianHolidayType extends Enum<ChristianHolidayType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCENSION_DAYASH_WEDNESDAYCARNIVALCLEAN_MONDAYCORPUS_CHRISTIEASTEREASTER_MONDAYEASTER_SATURDAYEASTER_TUESDAYGENERAL_PRAYER_DAYGOOD_FRIDAYMARDI_GRASMAUNDY_THURSDAYPENTECOSTPENTECOST_MONDAYSACRED_HEARTSHROVE_MONDAYWHIT_MONDAYWHIT_SUNDAY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChristianHolidayTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ChristianHolidayType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GOOD_FRIDAY
public static final ChristianHolidayType GOOD_FRIDAY
-
EASTER_MONDAY
public static final ChristianHolidayType EASTER_MONDAY
-
ASCENSION_DAY
public static final ChristianHolidayType ASCENSION_DAY
-
WHIT_MONDAY
public static final ChristianHolidayType WHIT_MONDAY
-
CORPUS_CHRISTI
public static final ChristianHolidayType CORPUS_CHRISTI
-
MAUNDY_THURSDAY
public static final ChristianHolidayType MAUNDY_THURSDAY
-
ASH_WEDNESDAY
public static final ChristianHolidayType ASH_WEDNESDAY
-
MARDI_GRAS
public static final ChristianHolidayType MARDI_GRAS
-
GENERAL_PRAYER_DAY
public static final ChristianHolidayType GENERAL_PRAYER_DAY
-
CLEAN_MONDAY
public static final ChristianHolidayType CLEAN_MONDAY
-
SHROVE_MONDAY
public static final ChristianHolidayType SHROVE_MONDAY
-
PENTECOST
public static final ChristianHolidayType PENTECOST
-
CARNIVAL
public static final ChristianHolidayType CARNIVAL
-
EASTER_SATURDAY
public static final ChristianHolidayType EASTER_SATURDAY
-
EASTER_TUESDAY
public static final ChristianHolidayType EASTER_TUESDAY
-
SACRED_HEART
public static final ChristianHolidayType SACRED_HEART
-
EASTER
public static final ChristianHolidayType EASTER
-
PENTECOST_MONDAY
public static final ChristianHolidayType PENTECOST_MONDAY
-
WHIT_SUNDAY
public static final ChristianHolidayType WHIT_SUNDAY
-
-
Method Detail
-
values
public static ChristianHolidayType[] 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 (ChristianHolidayType c : ChristianHolidayType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChristianHolidayType 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
-
-