Package net.time4j.calendar
Enum Class SexagesimalName.Branch
- All Implemented Interfaces:
Serializable
,Comparable<SexagesimalName.Branch>
,java.lang.constant.Constable
- Enclosing class:
- SexagesimalName
Defines the twelvth terrestrial branches with their animal signs (zodiacs).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName(Locale locale)
Obtains the localized name of this terrestrial branch.Obtains the animal describing this terrestrial branch.static SexagesimalName.Branch
Returns the enum constant of this class with the specified name.static SexagesimalName.Branch[]
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
-
ZI_1_RAT
-
CHOU_2_OX
-
YIN_3_TIGER
-
MAO_4_HARE
-
CHEN_5_DRAGON
-
SI_6_SNAKE
-
WU_7_HORSE
-
WEI_8_SHEEP
-
SHEN_9_MONKEY
-
YOU_10_FOWL
-
XU_11_DOG
-
HAI_12_PIG
-
-
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 terrestrial branch.
- Parameters:
locale
- language- Returns:
- display name
- See Also:
SexagesimalName.getDisplayName(Locale)
-
getZodiac
Obtains the animal describing this terrestrial branch.
- Parameters:
locale
- language- Returns:
- name of associated zodiac animal
-