public enum OSMColour extends java.lang.Enum<OSMColour>
Any new values for any of these attributes must be added at the end of the list to maintain enum ordinal stability and therefore backwards compatibility with maps imported with previous versions of this enumeration.
Enum Constant and Description |
---|
black |
green |
red |
unknown |
white |
yellow |
Modifier and Type | Method and Description |
---|---|
static OSMColour |
value(java.lang.String name)
Get the OSMColour object corresponding to this
|
static OSMColour |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OSMColour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OSMColour unknown
public static final OSMColour white
public static final OSMColour red
public static final OSMColour green
public static final OSMColour yellow
public static final OSMColour black
public static OSMColour[] values()
for (OSMColour c : OSMColour.values()) System.out.println(c);
public static OSMColour 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 OSMColour value(java.lang.String name)
name
- String name of colour