public enum HolidayType extends Enum<HolidayType>
| Enum Constant and Description |
|---|
BANKS_AND_FINANCIAL_INSTITUTIONS_ONLY
Holiday observed only by banks and (most) financial institutions.
|
GOVERNMENT_SERVICES_ONLY
Holiday observed only by government services.
|
PUBLIC
Holiday observed globally.
|
SCHOOLS_AND_UNIVERSITIES_ONLY
Holiday observed only by schools and universities.
|
SCHOOLS_ONLY
Holiday observed only by schools.
|
| Modifier and Type | Method and Description |
|---|---|
static HolidayType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HolidayType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HolidayType BANKS_AND_FINANCIAL_INSTITUTIONS_ONLY
public static final HolidayType GOVERNMENT_SERVICES_ONLY
public static final HolidayType PUBLIC
public static final HolidayType SCHOOLS_AND_UNIVERSITIES_ONLY
public static final HolidayType SCHOOLS_ONLY
public static HolidayType[] values()
for (HolidayType c : HolidayType.values()) System.out.println(c);
public static HolidayType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null