public class GuidanceSpeedData
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<GuidanceSpeedData> |
CREATOR |
Modifier | Constructor and Description |
---|---|
|
GuidanceSpeedData(java.lang.Double speed,
java.lang.Double speedLimit)
Constructs a new instance using current speed and color values.
|
protected |
GuidanceSpeedData(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object var1) |
java.lang.Double |
getCurrentSpeed()
Gets current speed.
|
java.lang.Double |
getCurrentSpeedLimit()
Gets current speed limit.
|
int |
hashCode() |
boolean |
isSpeeding()
Determines if current speed exceeds current speed limit.
|
boolean |
isValid()
Checks if internal state is correct.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<GuidanceSpeedData> CREATOR
public GuidanceSpeedData(java.lang.Double speed, java.lang.Double speedLimit)
speed
- a current speed value in meter per second.speedLimit
- a current speed limit value in meter per second.protected GuidanceSpeedData(android.os.Parcel in)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int describeContents()
describeContents
in interface android.os.Parcelable
public java.lang.Double getCurrentSpeed()
public java.lang.Double getCurrentSpeedLimit()
public boolean isSpeeding()
public boolean isValid()
@NonNull public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object var1)
equals
in class java.lang.Object