public enum Affection extends java.lang.Enum<Affection>
Enum Constant and Description |
---|
AFFECTED
Suffers from the disease
|
OTHER
An "other" trait: value of the trait is stored elsewhere and is an arbitrary string
|
UNAFFECTED
Unaffected by the disease
|
UNKNOWN
Status is unknown
|
Modifier and Type | Method and Description |
---|---|
static Affection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Affection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Affection UNKNOWN
public static final Affection AFFECTED
public static final Affection UNAFFECTED
public static final Affection OTHER
public static Affection[] values()
for (Affection c : Affection.values()) System.out.println(c);
public static Affection 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