Enum Constant and Description |
---|
ANGER |
ANXIETY |
DEPRESSION |
HAPPINESS |
LOVE |
NEUTRAL |
PRIDE |
Modifier and Type | Method and Description |
---|---|
static Emotion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Emotion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Emotion ANGER
public static final Emotion ANXIETY
public static final Emotion DEPRESSION
public static final Emotion NEUTRAL
public static final Emotion LOVE
public static final Emotion PRIDE
public static final Emotion HAPPINESS
public static Emotion[] values()
for (Emotion c : Emotion.values()) System.out.println(c);
public static Emotion 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 null