|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Drinker>
org.wso2.carbon.registry.social.api.people.userprofile.model.Drinker
public enum Drinker
Enum Constant Summary | |
---|---|
HEAVILY
Heavy drinker. |
|
NO
non drinker. |
|
OCCASIONALLY
occasional drinker. |
|
QUIT
has quit drinking. |
|
QUITTING
in the process of quitting. |
|
REGULARLY
regular drinker. |
|
SOCIALLY
drinks socially. |
|
YES
yes, a drinker of alchhol. |
Method Summary | |
---|---|
String |
getDisplayValue()
|
String |
toString()
|
static Drinker |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Drinker[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Drinker HEAVILY
public static final Drinker NO
public static final Drinker OCCASIONALLY
public static final Drinker QUIT
public static final Drinker QUITTING
public static final Drinker REGULARLY
public static final Drinker SOCIALLY
public static final Drinker YES
Method Detail |
---|
public static Drinker[] values()
for (Drinker c : Drinker.values()) System.out.println(c);
public static Drinker valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Drinker>
Enum.toString()
public String getDisplayValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |