public class CongestionSpan extends PositionSpan implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
CongestionSpan.Severity
Enum representing the congestion severity.
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<CongestionSpan> |
CREATOR |
START_POSITION_COMPARATOR
Constructor and Description |
---|
CongestionSpan(double startPosition,
double endPosition,
CongestionSpan.Severity severity) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
CongestionSpan.Severity |
getSeverity() |
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<CongestionSpan> CREATOR
public CongestionSpan(double startPosition, double endPosition, CongestionSpan.Severity severity)
public CongestionSpan.Severity getSeverity()
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