public enum PowerLevel extends Enum<PowerLevel>
Enum Constant and Description |
---|
LEVEL_HIGH |
LEVEL_HIGHEST |
LEVEL_LOW |
LEVEL_LOWEST |
LEVEL_MEDIUM |
LEVEL_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static PowerLevel |
get(int value)
Returns the
PowerLevel entry associated to the given value. |
String |
getDescription()
Returns the power level description.
|
int |
getValue()
Returns the power level value.
|
String |
toString() |
static PowerLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PowerLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerLevel LEVEL_HIGH
public static final PowerLevel LEVEL_HIGHEST
public static final PowerLevel LEVEL_LOW
public static final PowerLevel LEVEL_LOWEST
public static final PowerLevel LEVEL_MEDIUM
public static final PowerLevel LEVEL_UNKNOWN
public static PowerLevel get(int value)
PowerLevel
entry associated to the given value.value
- Value of the PowerLevel
to retrieve.PowerLevel
entry associated to the given value,
#LEVEL_UNKNOWN
if the value could not be found in the
list.public String getDescription()
public int getValue()
public String toString()
toString
in class Enum<PowerLevel>
public static PowerLevel 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 static PowerLevel[] values()
for (PowerLevel c : PowerLevel.values()) System.out.println(c);
© Copyright 2014–2014 Digi International Inc. All rights reserved.