public static enum AbstractPerson.PersonState extends java.lang.Enum<AbstractPerson.PersonState>
Enum Constant and Description |
---|
STANDING
Person is standing still.
|
WALKING
Person is walking.
|
Modifier and Type | Method and Description |
---|---|
static AbstractPerson.PersonState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractPerson.PersonState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractPerson.PersonState WALKING
public static final AbstractPerson.PersonState STANDING
public static AbstractPerson.PersonState[] values()
for (AbstractPerson.PersonState c : AbstractPerson.PersonState.values()) System.out.println(c);
public static AbstractPerson.PersonState 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