public enum GovernorType extends java.lang.Enum<GovernorType>
Governor
classes.Enum Constant and Description |
---|
CONSERVATIVE |
INTERACTIVE |
ONDEMAND |
PERFORMANCE |
POWERSAVE |
UNKNOWN |
USERSPACE |
Modifier and Type | Method and Description |
---|---|
static GovernorType |
getByID(java.lang.String governorID)
Returns the
GovernorType associated to the provided ID. |
java.lang.String |
getDescription()
Returns the governor type description.
|
java.lang.String |
getID()
Returns the governor type ID value.
|
static GovernorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GovernorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GovernorType PERFORMANCE
public static final GovernorType POWERSAVE
public static final GovernorType USERSPACE
public static final GovernorType ONDEMAND
public static final GovernorType CONSERVATIVE
public static final GovernorType INTERACTIVE
public static final GovernorType UNKNOWN
public static GovernorType[] values()
for (GovernorType c : GovernorType.values()) System.out.println(c);
public static GovernorType 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 java.lang.String getID()
public java.lang.String getDescription()
public static GovernorType getByID(java.lang.String governorID)
GovernorType
associated to the provided ID.governorID
- The ID of the GovernorType
to retrieve.GovernorType
associated to the provided ID or
null
if it was not found.