public enum CloudOption extends java.lang.Enum<CloudOption>
Modifier and Type | Field and Description |
---|---|
private static CloudOption[] |
BY_ID |
private int |
id |
private java.lang.String |
key |
Modifier and Type | Method and Description |
---|---|
static CloudOption |
byId(int id) |
int |
getId() |
java.lang.String |
getKey() |
static CloudOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CloudOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloudOption OFF
public static final CloudOption FAST
public static final CloudOption FANCY
private static final CloudOption[] BY_ID
private final int id
private final java.lang.String key
public static CloudOption[] values()
for (CloudOption c : CloudOption.values()) System.out.println(c);
public static CloudOption 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 int getId()
public java.lang.String getKey()
public static CloudOption byId(int id)