Package org.openjdk.jmc.common.unit
Enum QuantityConversionException.Problem
- java.lang.Object
-
- java.lang.Enum<QuantityConversionException.Problem>
-
- org.openjdk.jmc.common.unit.QuantityConversionException.Problem
-
- All Implemented Interfaces:
Serializable,Comparable<QuantityConversionException.Problem>
- Enclosing class:
- QuantityConversionException
public static enum QuantityConversionException.Problem extends Enum<QuantityConversionException.Problem>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFLICTING_CONSTRAINTSNO_UNITTOO_HIGHTOO_LOWTOO_SMALL_MAGNITUDEUNKNOWN_UNITUNPARSEABLE
-
Field Summary
Fields Modifier and Type Field Description StringlocalizedMsgStringlogMsg
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QuantityConversionException.ProblemvalueOf(String name)Returns the enum constant of this type with the specified name.static QuantityConversionException.Problem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNPARSEABLE
public static final QuantityConversionException.Problem UNPARSEABLE
-
NO_UNIT
public static final QuantityConversionException.Problem NO_UNIT
-
UNKNOWN_UNIT
public static final QuantityConversionException.Problem UNKNOWN_UNIT
-
TOO_LOW
public static final QuantityConversionException.Problem TOO_LOW
-
TOO_HIGH
public static final QuantityConversionException.Problem TOO_HIGH
-
TOO_SMALL_MAGNITUDE
public static final QuantityConversionException.Problem TOO_SMALL_MAGNITUDE
-
CONFLICTING_CONSTRAINTS
public static final QuantityConversionException.Problem CONFLICTING_CONSTRAINTS
-
-
Method Detail
-
values
public static QuantityConversionException.Problem[] 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 (QuantityConversionException.Problem c : QuantityConversionException.Problem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuantityConversionException.Problem valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-