Package com.squarespace.cldrengine.api
Enum UnitCategory
- java.lang.Object
-
- java.lang.Enum<UnitCategory>
-
- com.squarespace.cldrengine.api.UnitCategory
-
- All Implemented Interfaces:
StringEnum<UnitCategory>
,java.io.Serializable
,java.lang.Comparable<UnitCategory>
public enum UnitCategory extends java.lang.Enum<UnitCategory> implements StringEnum<UnitCategory>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnitCategory
fromString(java.lang.String s)
java.lang.String
value()
static UnitCategory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UnitCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCELERATION
public static final UnitCategory ACCELERATION
-
ANGLE
public static final UnitCategory ANGLE
-
AREA
public static final UnitCategory AREA
-
CONCENTR
public static final UnitCategory CONCENTR
-
CONSUMPTION
public static final UnitCategory CONSUMPTION
-
DIGITAL
public static final UnitCategory DIGITAL
-
DURATION
public static final UnitCategory DURATION
-
ELECTRIC
public static final UnitCategory ELECTRIC
-
ENERGY
public static final UnitCategory ENERGY
-
FORCE
public static final UnitCategory FORCE
-
FREQUENCY
public static final UnitCategory FREQUENCY
-
GRAPHICS
public static final UnitCategory GRAPHICS
-
LENGTH
public static final UnitCategory LENGTH
-
LIGHT
public static final UnitCategory LIGHT
-
MASS
public static final UnitCategory MASS
-
POWER
public static final UnitCategory POWER
-
PRESSURE
public static final UnitCategory PRESSURE
-
SPEED
public static final UnitCategory SPEED
-
TEMPERATURE
public static final UnitCategory TEMPERATURE
-
TORQUE
public static final UnitCategory TORQUE
-
VOLUME
public static final UnitCategory VOLUME
-
-
Method Detail
-
values
public static UnitCategory[] 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 (UnitCategory c : UnitCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnitCategory 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
-
value
public java.lang.String value()
- Specified by:
value
in interfaceStringEnum<UnitCategory>
-
fromString
public static UnitCategory fromString(java.lang.String s)
-
-