public enum MeasurementSystem extends java.lang.Enum<MeasurementSystem>
Enum Constant and Description |
---|
METRIC
The metric system
|
METRIC_UNCOMMON
The metric system, uncommon sizes
|
OTHER
A different measurement system than the given
|
UNIVERSAL
A system used globally
|
UNIVERSAL_UNCOMMON
A system used globally, uncommon sizes
|
US
The US system
|
US_UNCOMMON
The US system, uncommon sizes
|
Modifier and Type | Method and Description |
---|---|
static MeasurementSystem |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MeasurementSystem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeasurementSystem METRIC
public static final MeasurementSystem METRIC_UNCOMMON
public static final MeasurementSystem US
public static final MeasurementSystem US_UNCOMMON
public static final MeasurementSystem UNIVERSAL
public static final MeasurementSystem UNIVERSAL_UNCOMMON
public static final MeasurementSystem OTHER
public static MeasurementSystem[] values()
for (MeasurementSystem c : MeasurementSystem.values()) System.out.println(c);
public static MeasurementSystem valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null