public enum UnitsPower extends Enum<UnitsPower> implements Enumeration
Enum Constant and Description |
---|
ATTOWATT
attowatt unit.
|
CENTIWATT
centiwatt unit.
|
DECAWATT
decawatt unit.
|
DECIWATT
deciwatt unit.
|
EXAWATT
exawatt unit.
|
FEMTOWATT
femtowatt unit.
|
GIGAWATT
gigawatt unit.
|
HECTOWATT
hectowatt unit.
|
KILOWATT
kilowatt unit.
|
MEGAWATT
megawatt unit.
|
MICROWATT
microwatt unit.
|
MILLIWATT
milliwatt unit.
|
NANOWATT
nanowatt unit.
|
PETAWATT
petawatt unit.
|
PICOWATT
picowatt unit.
|
TERAWATT
terawatt unit.
|
WATT
watt unit.
|
YOCTOWATT
yoctowatt unit.
|
YOTTAWATT
yottawatt unit.
|
ZEPTOWATT
zeptowatt unit.
|
ZETTAWATT
zettawatt unit.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
create(T newValue,
UnitsPower newUnit) |
static <T extends PrimitiveNumber> |
create(T newValue,
UnitsPower newUnit) |
static UnitsPower |
fromString(String value) |
String |
getValue() |
String |
toString() |
static UnitsPower |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitsPower[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitsPower YOTTAWATT
public static final UnitsPower ZETTAWATT
public static final UnitsPower EXAWATT
public static final UnitsPower PETAWATT
public static final UnitsPower TERAWATT
public static final UnitsPower GIGAWATT
public static final UnitsPower MEGAWATT
public static final UnitsPower KILOWATT
public static final UnitsPower HECTOWATT
public static final UnitsPower DECAWATT
public static final UnitsPower WATT
public static final UnitsPower DECIWATT
public static final UnitsPower CENTIWATT
public static final UnitsPower MILLIWATT
public static final UnitsPower MICROWATT
public static final UnitsPower NANOWATT
public static final UnitsPower PICOWATT
public static final UnitsPower FEMTOWATT
public static final UnitsPower ATTOWATT
public static final UnitsPower ZEPTOWATT
public static final UnitsPower YOCTOWATT
public static UnitsPower[] values()
for (UnitsPower c : UnitsPower.values()) System.out.println(c);
public static UnitsPower 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 UnitsPower fromString(String value) throws EnumerationException
EnumerationException
public String getValue()
public String toString()
toString
in class Enum<UnitsPower>
public static <T extends PrimitiveNumber> Power create(T newValue, UnitsPower newUnit)
public static <T extends Number> Power create(T newValue, UnitsPower newUnit)
Copyright © 2006–2020 Open Microscopy Environment. All rights reserved.