Package com.ibm.icu.impl.units
Enum MeasureUnitImpl.UnitsParser.Token.Type
- java.lang.Object
-
- java.lang.Enum<MeasureUnitImpl.UnitsParser.Token.Type>
-
- com.ibm.icu.impl.units.MeasureUnitImpl.UnitsParser.Token.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MeasureUnitImpl.UnitsParser.Token.Type>
- Enclosing class:
- MeasureUnitImpl.UnitsParser.Token
static enum MeasureUnitImpl.UnitsParser.Token.Type extends java.lang.Enum<MeasureUnitImpl.UnitsParser.Token.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TYPE_COMPOUND_PART
TYPE_INITIAL_COMPOUND_PART
TYPE_POWER_PART
TYPE_PREFIX
TYPE_SIMPLE_UNIT
TYPE_UNDEFINED
-
Constructor Summary
Constructors Modifier Constructor Description private
Type()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MeasureUnitImpl.UnitsParser.Token.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MeasureUnitImpl.UnitsParser.Token.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_UNDEFINED
public static final MeasureUnitImpl.UnitsParser.Token.Type TYPE_UNDEFINED
-
TYPE_PREFIX
public static final MeasureUnitImpl.UnitsParser.Token.Type TYPE_PREFIX
-
TYPE_COMPOUND_PART
public static final MeasureUnitImpl.UnitsParser.Token.Type TYPE_COMPOUND_PART
-
TYPE_INITIAL_COMPOUND_PART
public static final MeasureUnitImpl.UnitsParser.Token.Type TYPE_INITIAL_COMPOUND_PART
-
TYPE_POWER_PART
public static final MeasureUnitImpl.UnitsParser.Token.Type TYPE_POWER_PART
-
TYPE_SIMPLE_UNIT
public static final MeasureUnitImpl.UnitsParser.Token.Type TYPE_SIMPLE_UNIT
-
-
Method Detail
-
values
public static MeasureUnitImpl.UnitsParser.Token.Type[] 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 (MeasureUnitImpl.UnitsParser.Token.Type c : MeasureUnitImpl.UnitsParser.Token.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MeasureUnitImpl.UnitsParser.Token.Type 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
-
-