Package ome.xml.model.enums
Enum UnitsPower
- java.lang.Object
-
- java.lang.Enum<UnitsPower>
-
- ome.xml.model.enums.UnitsPower
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UnitsPower>,Enumeration
public enum UnitsPower extends java.lang.Enum<UnitsPower> implements Enumeration
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTOWATTattowatt unit.CENTIWATTcentiwatt unit.DECAWATTdecawatt unit.DECIWATTdeciwatt unit.EXAWATTexawatt unit.FEMTOWATTfemtowatt unit.GIGAWATTgigawatt unit.HECTOWATThectowatt unit.KILOWATTkilowatt unit.MEGAWATTmegawatt unit.MICROWATTmicrowatt unit.MILLIWATTmilliwatt unit.NANOWATTnanowatt unit.PETAWATTpetawatt unit.PICOWATTpicowatt unit.TERAWATTterawatt unit.WATTwatt unit.YOCTOWATTyoctowatt unit.YOTTAWATTyottawatt unit.ZEPTOWATTzeptowatt unit.ZETTAWATTzettawatt 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 UnitsPowerfromString(java.lang.String value)java.lang.StringgetValue()java.lang.StringtoString()static UnitsPowervalueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fromString
public static UnitsPower fromString(java.lang.String value) throws EnumerationException
- Throws:
EnumerationException
-
getValue
public java.lang.String getValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<UnitsPower>
-
create
public static <T extends PrimitiveNumber> Power create(T newValue, UnitsPower newUnit)
-
create
public static <T extends java.lang.Number> Power create(T newValue, UnitsPower newUnit)
-
-