public class SpeedLimit
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
SpeedLimit.Type |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<SpeedLimit> |
CREATOR |
Constructor and Description |
---|
SpeedLimit(float speed,
SpeedLimit.Type type,
SystemOfMeasurement localSystemOfMeasurement) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
SystemOfMeasurement |
getLocalSystemOfMeasurement() |
float |
getSpeed()
Returns the speed in meters per second.
|
SpeedLimit.Type |
getType() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<SpeedLimit> CREATOR
public SpeedLimit(float speed, SpeedLimit.Type type, SystemOfMeasurement localSystemOfMeasurement)
public float getSpeed()
public SpeedLimit.Type getType()
public SystemOfMeasurement getLocalSystemOfMeasurement()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable