public static enum PowerSource.CapacityUnits extends Enum<PowerSource.CapacityUnits>
Enum Constant and Description |
---|
MAH
MilliAmpHours (mAh).
|
MWH
MilliWattHours (mWh).
|
RELATIVE
Relative units.
|
Modifier and Type | Method and Description |
---|---|
static PowerSource.CapacityUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PowerSource.CapacityUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerSource.CapacityUnits MWH
public static final PowerSource.CapacityUnits MAH
public static final PowerSource.CapacityUnits RELATIVE
public static PowerSource.CapacityUnits[] values()
for (PowerSource.CapacityUnits c : PowerSource.CapacityUnits.values()) System.out.println(c);
public static PowerSource.CapacityUnits 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 nullCopyright © 2010–2020 oshi. All rights reserved.