public abstract class BatteryInfo
extends java.lang.Object
Constructor and Description |
---|
BatteryInfo(java.util.Map<java.lang.String,java.lang.Object> input) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getInput() |
double |
getLevel()
Returns battery level.
|
abstract <T> T |
getState()
Returns battery state.
|
public BatteryInfo(java.util.Map<java.lang.String,java.lang.Object> input)
public double getLevel()
public abstract <T> T getState()
protected java.util.Map<java.lang.String,java.lang.Object> getInput()