Package ome.xml.model.enums
Enum Class UnitsPower
- All Implemented Interfaces:
Serializable,Comparable<UnitsPower>,Constable,Enumeration
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionattowatt unit.centiwatt unit.decawatt unit.deciwatt unit.exawatt unit.femtowatt unit.gigawatt unit.hectowatt unit.kilowatt unit.megawatt unit.microwatt unit.milliwatt unit.nanowatt unit.petawatt unit.picowatt unit.terawatt unit.watt unit.yoctowatt unit.yottawatt unit.zeptowatt unit.zettawatt unit. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PrimitiveNumber>
Powercreate(T newValue, UnitsPower newUnit) static UnitsPowerfromString(String value) getValue()toString()static UnitsPowerReturns the enum constant of this class with the specified name.static UnitsPower[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
YOTTAWATT
yottawatt unit. -
ZETTAWATT
zettawatt unit. -
EXAWATT
exawatt unit. -
PETAWATT
petawatt unit. -
TERAWATT
terawatt unit. -
GIGAWATT
gigawatt unit. -
MEGAWATT
megawatt unit. -
KILOWATT
kilowatt unit. -
HECTOWATT
hectowatt unit. -
DECAWATT
decawatt unit. -
WATT
watt unit. -
DECIWATT
deciwatt unit. -
CENTIWATT
centiwatt unit. -
MILLIWATT
milliwatt unit. -
MICROWATT
microwatt unit. -
NANOWATT
nanowatt unit. -
PICOWATT
picowatt unit. -
FEMTOWATT
femtowatt unit. -
ATTOWATT
attowatt unit. -
ZEPTOWATT
zeptowatt unit. -
YOCTOWATT
yoctowatt unit.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
- Throws:
EnumerationException
-
getValue
-
toString
- Overrides:
toStringin classEnum<UnitsPower>
-
create
-
create
-