Package net.time4j.calendar
Enum Class SexagesimalName.Stem
- All Implemented Interfaces:
Serializable
,Comparable<SexagesimalName.Stem>
,java.lang.constant.Constable
- Enclosing class:
- SexagesimalName
Defines the ten celestial stems.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName(Locale locale)
Obtains the localized name of this celestial stem.static SexagesimalName.Stem
Returns the enum constant of this class with the specified name.static SexagesimalName.Stem[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
JIA_1_WOOD_YANG
-
YI_2_WOOD_YIN
-
BING_3_FIRE_YANG
-
DING_4_FIRE_YIN
-
WU_5_EARTH_YANG
-
JI_6_EARTH_YIN
-
GENG_7_METAL_YANG
-
XIN_8_METAL_YIN
-
REN_9_WATER_YANG
-
GUI_10_WATER_YIN
-
-
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
-
getDisplayName
Obtains the localized name of this celestial stem.
- Parameters:
locale
- language- Returns:
- display name
- See Also:
SexagesimalName.getDisplayName(Locale)
-