public static enum SexagesimalName.Branch extends Enum<SexagesimalName.Branch>
Defines the twelvth terrestrial branches with their animal signs (zodiacs).
| Enum Constant and Description |
|---|
CHEN_5_DRAGON |
CHOU_2_OX |
HAI_12_PIG |
MAO_4_HARE |
SHEN_9_MONKEY |
SI_6_SNAKE |
WEI_8_SHEEP |
WU_7_HORSE |
XU_11_DOG |
YIN_3_TIGER |
YOU_10_FOWL |
ZI_1_RAT |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName(Locale locale)
Obtains the localized name of this terrestrial branch.
|
String |
getZodiac(Locale locale)
Obtains the animal describing this terrestrial branch.
|
static SexagesimalName.Branch |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SexagesimalName.Branch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SexagesimalName.Branch ZI_1_RAT
public static final SexagesimalName.Branch CHOU_2_OX
public static final SexagesimalName.Branch YIN_3_TIGER
public static final SexagesimalName.Branch MAO_4_HARE
public static final SexagesimalName.Branch CHEN_5_DRAGON
public static final SexagesimalName.Branch SI_6_SNAKE
public static final SexagesimalName.Branch WU_7_HORSE
public static final SexagesimalName.Branch WEI_8_SHEEP
public static final SexagesimalName.Branch SHEN_9_MONKEY
public static final SexagesimalName.Branch YOU_10_FOWL
public static final SexagesimalName.Branch XU_11_DOG
public static final SexagesimalName.Branch HAI_12_PIG
public static SexagesimalName.Branch[] values()
for (SexagesimalName.Branch c : SexagesimalName.Branch.values()) System.out.println(c);
public static SexagesimalName.Branch 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 nullpublic String getDisplayName(Locale locale)
Obtains the localized name of this terrestrial branch.
locale - languageSexagesimalName.getDisplayName(Locale)Copyright © 2014–2021. All rights reserved.