public enum ZodiacSign extends java.lang.Enum<ZodiacSign>
Enum Constant and Description |
---|
Dog |
Dragon |
Horse |
Monkey |
Ox |
Pig |
Rabbit |
Rat |
Rooster |
Sheep |
Snake |
Tiger |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getInfo()
Get a year list for current Zodiac sign in String format.
|
protected java.lang.String |
getSymbol()
Get the Chinese symbol for current Zodiac sign in String format.
|
static ZodiacSign |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ZodiacSign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZodiacSign Rat
public static final ZodiacSign Ox
public static final ZodiacSign Tiger
public static final ZodiacSign Rabbit
public static final ZodiacSign Dragon
public static final ZodiacSign Snake
public static final ZodiacSign Horse
public static final ZodiacSign Sheep
public static final ZodiacSign Monkey
public static final ZodiacSign Rooster
public static final ZodiacSign Dog
public static final ZodiacSign Pig
public static ZodiacSign[] values()
for (ZodiacSign c : ZodiacSign.values()) System.out.println(c);
public static ZodiacSign valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullprotected java.lang.String getInfo()
protected java.lang.String getSymbol()
Get the Chinese symbol for current Zodiac sign in String format. eg 龙
Note that the symbol is Non-ASCII. It may not display correctly