public enum HoroscopeSign extends java.lang.Enum<HoroscopeSign>
Enum Constant and Description |
---|
Aquarius |
Aries |
Cancer |
Capricorn |
Gemini |
Leo |
Libra |
Pisces |
Sagittarius |
Scorpio |
Taurus |
Virgo |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getInfo()
Get a date range for current Horoscope sign in String format.
|
protected java.lang.String |
getSymbol()
Get the Special symbol for current Horoscope sign in String format.
|
static HoroscopeSign |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HoroscopeSign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HoroscopeSign Aries
public static final HoroscopeSign Taurus
public static final HoroscopeSign Gemini
public static final HoroscopeSign Cancer
public static final HoroscopeSign Leo
public static final HoroscopeSign Virgo
public static final HoroscopeSign Libra
public static final HoroscopeSign Scorpio
public static final HoroscopeSign Sagittarius
public static final HoroscopeSign Capricorn
public static final HoroscopeSign Aquarius
public static final HoroscopeSign Pisces
public static HoroscopeSign[] values()
for (HoroscopeSign c : HoroscopeSign.values()) System.out.println(c);
public static HoroscopeSign 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 Special symbol for current Horoscope sign in String format. eg ♎
Note that the symbol is Non-ASCII. It may not display correctly