public static enum UserPreferences.Unit extends Enum<UserPreferences.Unit>
Enum Constant and Description |
---|
METERS
Metric units, specifically meters.
|
MILES
Imperial units, specifically miles.
|
Modifier and Type | Method and Description |
---|---|
static UserPreferences.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserPreferences.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserPreferences.Unit MILES
public static final UserPreferences.Unit METERS
public static UserPreferences.Unit[] values()
for (UserPreferences.Unit c : UserPreferences.Unit.values()) System.out.println(c);
public static UserPreferences.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 © 2013-2018 INRIX, Inc. All Rights Reserved.