public class SpeedLimitSpan extends PositionSpan implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<SpeedLimitSpan> |
CREATOR |
START_POSITION_COMPARATOR
Constructor and Description |
---|
SpeedLimitSpan(double startPosition,
double endPosition,
float speed,
SpeedLimit.Type type,
SystemOfMeasurement localSystemOfMeasurement) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
SpeedLimit |
getSpeedLimit() |
void |
writeToParcel(android.os.Parcel parcel,
int flags)
From the Parcelable, even through PositionSpan itself isn't Parcelable, for subclasses to use at
their discretion.
|
getEnd, getStart
public static final android.os.Parcelable.Creator<SpeedLimitSpan> CREATOR
public SpeedLimitSpan(double startPosition, double endPosition, float speed, SpeedLimit.Type type, SystemOfMeasurement localSystemOfMeasurement)
public SpeedLimit getSpeedLimit()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int flags)
PositionSpan
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class PositionSpan