public static enum Server.State extends Enum<Server.State>
Enum Constant and Description |
---|
LOCKED |
RUNNING |
STOPPED |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static Server.State |
fromValue(String state) |
String |
toString() |
String |
value() |
static Server.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Server.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Server.State RUNNING
public static final Server.State LOCKED
public static final Server.State STOPPED
public static final Server.State UNRECOGNIZED
public static Server.State[] values()
for (Server.State c : Server.State.values()) System.out.println(c);
public static Server.State 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 value()
public String toString()
toString
in class Enum<Server.State>
public static Server.State fromValue(String state)
Copyright © 2009-2013 jclouds. All Rights Reserved.