public enum Diplomatic extends java.lang.Enum<Diplomatic> implements AmenityOrWay
Enum Constant and Description |
---|
consulate |
consulate_general |
embassy |
liaison |
Modifier and Type | Method and Description |
---|---|
AmenityType |
getAmenityType()
Get amenity type associated with this enumeration; only for types that are amenities.
|
static Diplomatic |
value(java.lang.String name)
Get the enum value associated with the string name specified.
|
static Diplomatic |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Diplomatic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
WayType |
wayType()
Report the WayType for rendering this type of Way.
|
public static final Diplomatic embassy
public static final Diplomatic consulate
public static final Diplomatic liaison
public static final Diplomatic consulate_general
public static Diplomatic[] values()
for (Diplomatic c : Diplomatic.values()) System.out.println(c);
public static Diplomatic 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 WayType wayType()
wayType
in interface AmenityOrWay
public AmenityType getAmenityType()
getAmenityType
in interface AmenityOrWay
public static Diplomatic value(java.lang.String name)
name
- String to convert into an Enum