public static enum Length.Unit extends Enum<Length.Unit>
Enum Constant and Description |
---|
IN
Inches [in] imperial unit.
|
M
Meters [m] SI unit.
|
MM
Millimeters [mm].
|
Modifier and Type | Method and Description |
---|---|
static Length.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Length.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Length.Unit M
public static final Length.Unit MM
public static final Length.Unit IN
public static Length.Unit[] values()
for (Length.Unit c : Length.Unit.values()) System.out.println(c);
public static Length.Unit 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 nullCopyright © 2021. All rights reserved.