Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Distance> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
int |
getInt() |
static Distance |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Distance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToParcel(android.os.Parcel parcel,
int i) |
public static final Distance UNKNOWN
public static final Distance IMMINENT
public static final Distance NEAR
public static final Distance FAR
public static final android.os.Parcelable.Creator<Distance> CREATOR
public static Distance[] values()
for (Distance c : Distance.values()) System.out.println(c);
public static Distance valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getInt()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable