public enum Location extends java.lang.Enum<Location>
Enum Constant and Description |
---|
overground |
overhead |
roof |
rooftop |
surface |
underground |
underwater |
Modifier and Type | Method and Description |
---|---|
int |
getFlags2Mask()
Indicates any extended flag bits implied by this enum type.
|
static Location |
value(java.lang.String name)
Get the enum value associated with the string name specified.
|
static Location |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Location[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Location underground
public static final Location underwater
public static final Location overground
public static final Location overhead
public static final Location roof
public static final Location rooftop
public static final Location surface
public static Location[] values()
for (Location c : Location.values()) System.out.println(c);
public static Location 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 nullpublic static Location value(java.lang.String name)
name
- String to convert into an Enumpublic int getFlags2Mask()