public enum BedPart extends Enum<BedPart> implements StringIdentifiable
Modifier and Type | Method and Description |
---|---|
String |
asString() |
String |
toString() |
static BedPart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BedPart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
createCodec, createCodec, method_28142
private final String name
public static BedPart[] values()
for (BedPart c : BedPart.values()) System.out.println(c);
public static BedPart 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 nullpublic String asString()
asString
in interface StringIdentifiable