public static enum Length.UnitsOfLength extends Enum<Length.UnitsOfLength>
Enum Constant and Description |
---|
CENTIMETER
Centimeter units
|
INCH
Inch units
|
MILLIMETER
Millimeter units
|
Modifier and Type | Method and Description |
---|---|
static Length.UnitsOfLength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Length.UnitsOfLength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Length.UnitsOfLength MILLIMETER
public static final Length.UnitsOfLength CENTIMETER
public static final Length.UnitsOfLength INCH
public static Length.UnitsOfLength[] values()
for (Length.UnitsOfLength c : Length.UnitsOfLength.values()) System.out.println(c);
public static Length.UnitsOfLength valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null