com.myjeeva.digitalocean
Enum DropletStatus
java.lang.Object
java.lang.Enum<DropletStatus>
com.myjeeva.digitalocean.DropletStatus
- All Implemented Interfaces:
- Serializable, Comparable<DropletStatus>
public enum DropletStatus
- extends Enum<DropletStatus>
Describes possible droplet states.
- Since:
- v1.5
- Author:
- Robert Gründler ([email protected]) - pulse00
New
public static final DropletStatus New
Active
public static final DropletStatus Active
Off
public static final DropletStatus Off
Archive
public static final DropletStatus Archive
values
public static DropletStatus[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (DropletStatus c : DropletStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DropletStatus valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
toString
public String toString()
- Overrides:
toString
in class Enum<DropletStatus>
fromValue
public static DropletStatus fromValue(String value)