Package ome.xml.model.enums
Enum UnitsPower
- java.lang.Object
-
- java.lang.Enum<UnitsPower>
-
- ome.xml.model.enums.UnitsPower
-
- All Implemented Interfaces:
Serializable
,Comparable<UnitsPower>
,Enumeration
public enum UnitsPower extends Enum<UnitsPower> implements Enumeration
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends PrimitiveNumber>
Powercreate(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.
-
-
-
Enum Constant Detail
-
YOTTAWATT
public static final UnitsPower YOTTAWATT
yottawatt unit.
-
ZETTAWATT
public static final UnitsPower ZETTAWATT
zettawatt unit.
-
EXAWATT
public static final UnitsPower EXAWATT
exawatt unit.
-
PETAWATT
public static final UnitsPower PETAWATT
petawatt unit.
-
TERAWATT
public static final UnitsPower TERAWATT
terawatt unit.
-
GIGAWATT
public static final UnitsPower GIGAWATT
gigawatt unit.
-
MEGAWATT
public static final UnitsPower MEGAWATT
megawatt unit.
-
KILOWATT
public static final UnitsPower KILOWATT
kilowatt unit.
-
HECTOWATT
public static final UnitsPower HECTOWATT
hectowatt unit.
-
DECAWATT
public static final UnitsPower DECAWATT
decawatt unit.
-
WATT
public static final UnitsPower WATT
watt unit.
-
DECIWATT
public static final UnitsPower DECIWATT
deciwatt unit.
-
CENTIWATT
public static final UnitsPower CENTIWATT
centiwatt unit.
-
MILLIWATT
public static final UnitsPower MILLIWATT
milliwatt unit.
-
MICROWATT
public static final UnitsPower MICROWATT
microwatt unit.
-
NANOWATT
public static final UnitsPower NANOWATT
nanowatt unit.
-
PICOWATT
public static final UnitsPower PICOWATT
picowatt unit.
-
FEMTOWATT
public static final UnitsPower FEMTOWATT
femtowatt unit.
-
ATTOWATT
public static final UnitsPower ATTOWATT
attowatt unit.
-
ZEPTOWATT
public static final UnitsPower ZEPTOWATT
zeptowatt unit.
-
YOCTOWATT
public static final UnitsPower YOCTOWATT
yoctowatt unit.
-
-
Method Detail
-
values
public static UnitsPower[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UnitsPower c : UnitsPower.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnitsPower valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static UnitsPower fromString(String value) throws EnumerationException
- Throws:
EnumerationException
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toString
in classEnum<UnitsPower>
-
create
public static <T extends PrimitiveNumber> Power create(T newValue, UnitsPower newUnit)
-
create
public static <T extends Number> Power create(T newValue, UnitsPower newUnit)
-
-