public static enum Distance.Unit extends Enum<Distance.Unit>
Enum Constant and Description |
---|
KILOMETERS |
MILES |
Modifier and Type | Method and Description |
---|---|
double |
getMultiplier() |
static Distance.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Distance.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Distance.Unit KILOMETERS
public static final Distance.Unit MILES
public static Distance.Unit[] values()
for (Distance.Unit c : Distance.Unit.values()) System.out.println(c);
public static Distance.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 nullpublic double getMultiplier()
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.