public static enum Length.Units extends Enum<Length.Units>
| Enum Constant and Description |
|---|
FEET |
KILOMETERS |
METERS |
MILES |
| Modifier and Type | Method and Description |
|---|---|
static Length.Units |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Length.Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Length.Units MILES
public static final Length.Units KILOMETERS
public static final Length.Units METERS
public static final Length.Units FEET
public static Length.Units[] values()
for (Length.Units c : Length.Units.values()) System.out.println(c);
public static Length.Units 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 © 2015. All rights reserved.