public enum LocationStates extends java.lang.Enum<LocationStates>
Enum Constant and Description |
---|
BATHROOM
There is a location called BATHROOM defined.
|
BEDROOM
There is a location called BEDROOM defined.
|
DINING
There is a location called DINING defined.
|
HALL
There is a location called HALL defined.
|
KITCHEN
There is a location called KITCHEN defined.
|
LIVING
There is a location called LIVING defined.
|
OUTSIDE
There is a location called OUTSIDE defined.
|
Modifier and Type | Method and Description |
---|---|
static LocationStates |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocationStates[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationStates BEDROOM
public static final LocationStates BATHROOM
public static final LocationStates HALL
public static final LocationStates DINING
public static final LocationStates KITCHEN
public static final LocationStates LIVING
public static final LocationStates OUTSIDE
public static LocationStates[] values()
for (LocationStates c : LocationStates.values()) System.out.println(c);
public static LocationStates 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