Enum Class Calendar
- All Implemented Interfaces:
Serializable,Comparable<Calendar>,Constable
Represents the calendar system used to extract parts of a date.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBuddhist calendar, identical to Gregorian calendar but offset by -543 years.Japanese Gengou calendar, Emperor eras.Gregorian calendar with cut-off date 1582-10-04, 1582-10-15 following.Additional Gregorian calendar in Korean locales, uses differently localized day and month names.Legacy alias for hanja.Islamic Hijri lunar calendar (religious, non-civil).Jewish lunisolar calendar.NoneTaiwanese Minguo calendar, identical to Gregorian calendar offset by -1911 years. -
Method Summary
-
Enum Constant Details
-
GREGORIAN
Gregorian calendar with cut-off date 1582-10-04, 1582-10-15 following. Dates before cut-off date are calculated in Julian proleptic calendar [ISO8601]. -
GENGOU
Japanese Gengou calendar, Emperor eras. Identical to Gregorian calendar but with different eras for each emperor. Consumers may implement only the modern eras starting 1868, Meiji, Taisho, Showa and Heisei. Earlier dates are then displayed using the Gregorian calendar [JIS X 0301]. -
ROC
Taiwanese Minguo calendar, identical to Gregorian calendar offset by -1911 years. -
HANJA_YOIL
Legacy alias for hanja. -
HANJA
Additional Gregorian calendar in Korean locales, uses differently localized day and month names. -
HIJRI
Islamic Hijri lunar calendar (religious, non-civil). -
JEWISH
Jewish lunisolar calendar. -
BUDDHIST
Buddhist calendar, identical to Gregorian calendar but offset by -543 years. -
NONE
None
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-