public enum States extends Enum<States>
Enum Constant and Description |
---|
CONFIGURED |
FAILED |
OFF |
PENDING |
RUNNING |
STOPPED |
UNCONFIGURED |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static States |
getEnumFromValue(String value)
Returns a VmState if the String passed is the same as one of the states of
the enumerator.
|
String |
getValue() |
String |
toString() |
static States |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static States[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final States PENDING
public static final States RUNNING
public static final States UNCONFIGURED
public static final States CONFIGURED
public static final States STOPPED
public static final States OFF
public static final States FAILED
public static final States UNKNOWN
public static States[] values()
for (States c : States.values()) System.out.println(c);
public static States 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 getValue()
public static States getEnumFromValue(String value) throws NoEnumFoundException
value
- : string of the value to retrieveNoEnumFoundException
Copyright © 2016. All rights reserved.