public static enum SavedLocation.LocationType extends Enum<SavedLocation.LocationType>
Enum Constant and Description |
---|
HOME
User's residence.
|
OTHER
Any other location.
|
WORK
User's workplace.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the type value.
|
static SavedLocation.LocationType |
parseByValue(int type)
Converts the integer representation into a location type.
|
static SavedLocation.LocationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SavedLocation.LocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SavedLocation.LocationType HOME
public static final SavedLocation.LocationType WORK
public static final SavedLocation.LocationType OTHER
public static SavedLocation.LocationType[] values()
for (SavedLocation.LocationType c : SavedLocation.LocationType.values()) System.out.println(c);
public static SavedLocation.LocationType 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 final int getValue()
public static SavedLocation.LocationType parseByValue(int type)
type
- The integer representation of the type.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.