public static enum Nearable.BatteryLevel extends java.lang.Enum<Nearable.BatteryLevel>
| Modifier and Type | Field and Description |
|---|---|
float |
voltage
Power measured in dBm.
|
| Modifier and Type | Method and Description |
|---|---|
static Nearable.BatteryLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Nearable.BatteryLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Nearable.BatteryLevel UNKNOWN
public static final Nearable.BatteryLevel HIGH
public static final Nearable.BatteryLevel MEDIUM
public static final Nearable.BatteryLevel LOW
public static Nearable.BatteryLevel[] values()
for (Nearable.BatteryLevel c : Nearable.BatteryLevel.values()) System.out.println(c);
public static Nearable.BatteryLevel 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 null