Package javax.measure
Enum Quantity.Scale
- java.lang.Object
-
- java.lang.Enum<Quantity.Scale>
-
- javax.measure.Quantity.Scale
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Quantity.Scale>
public static enum Quantity.Scale extends java.lang.Enum<Quantity.Scale>
- Since:
- 2.0
- See Also:
- Wikipedia: Absolute scale
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Quantity.ScalevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Quantity.Scale[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSOLUTE
public static final Quantity.Scale ABSOLUTE
Absolute scale- See Also:
- Wikipedia: Absolute scale
-
RELATIVE
public static final Quantity.Scale RELATIVE
Relative scale
-
-
Method Detail
-
values
public static Quantity.Scale[] 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 (Quantity.Scale c : Quantity.Scale.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Quantity.Scale 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
-
-