public enum Surface extends Enum<Surface>
Enum Constant and Description |
---|
ASPHALT |
COBBLESTONE |
COMPACTED |
CONCRETE |
DIRT |
FINE_GRAVEL |
GRASS |
GRAVEL |
GROUND |
MISSING |
OTHER |
PAVED |
PAVING_STONES |
SAND |
UNPAVED |
Modifier and Type | Method and Description |
---|---|
static Surface |
find(String name) |
String |
toString() |
static Surface |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Surface[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Surface MISSING
public static final Surface PAVED
public static final Surface ASPHALT
public static final Surface CONCRETE
public static final Surface PAVING_STONES
public static final Surface COBBLESTONE
public static final Surface UNPAVED
public static final Surface COMPACTED
public static final Surface FINE_GRAVEL
public static final Surface GRAVEL
public static final Surface GROUND
public static final Surface DIRT
public static final Surface GRASS
public static final Surface SAND
public static final Surface OTHER
public static final String KEY
public static Surface[] values()
for (Surface c : Surface.values()) System.out.println(c);
public static Surface valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2021. All rights reserved.