public class GuidanceEstimatedArrivalViewData
extends java.lang.Object
implements android.os.Parcelable
GuidanceEstimatedArrivalViewPresenter
to get notified on new instances of this class during guidance.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<GuidanceEstimatedArrivalViewData> |
CREATOR |
Modifier | Constructor and Description |
---|---|
|
GuidanceEstimatedArrivalViewData(java.util.Date etaDate,
java.lang.Long distance,
java.lang.Integer duration)
Constructs a new instance using the provided icon and info strings.
|
protected |
GuidanceEstimatedArrivalViewData(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj1) |
java.lang.Long |
getDistance()
Gets the distance to the destination.
|
java.lang.Integer |
getDuration()
Gets the remaining duration of the travel.
|
java.util.Date |
getEta()
Gets the estimated time of arrival at the destination.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<GuidanceEstimatedArrivalViewData> CREATOR
public GuidanceEstimatedArrivalViewData(java.util.Date etaDate, java.lang.Long distance, java.lang.Integer duration)
etaDate
- estimated time of arrival.distance
- distance to the destination.duration
- remaining duration of the travel.protected GuidanceEstimatedArrivalViewData(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.util.Date getEta()
public java.lang.Long getDistance()
public java.lang.Integer getDuration()
@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 obj1)
equals
in class java.lang.Object