TravelEstimate
public
final
class
TravelEstimate
extends Object
java.lang.Object
|
↳ |
com.google.android.libraries.car.app.navigation.model.TravelEstimate
|
Represents the travel estimates to a destination of a trip or for a trip segment, including the
remaining time and distance to the destination.
Summary
Nested classes |
class |
TravelEstimate.Builder
A builder of TravelEstimate .
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
builder
public static TravelEstimate.Builder builder (Distance remainingDistance,
long remainingTimeSeconds,
DateTimeWithZone arrivalTimeAtDestination)
Constructs a new builder of TravelEstimate
.
Parameters |
remainingDistance |
Distance : The estimated remaining Distance until arriving at the
destination. |
remainingTimeSeconds |
long : The estimated time remaining until arriving at the destination, in
seconds. |
arrivalTimeAtDestination |
DateTimeWithZone : The arrival time with the time zone information provided for
the destination. |
builder
public static TravelEstimate.Builder builder (Distance remainingDistance,
Duration remainingTime,
ZonedDateTime arrivalTimeAtDestination)
Constructs a new builder of TravelEstimate
.
Parameters |
remainingDistance |
Distance : The estimated remaining Distance until arriving at the
destination. |
remainingTime |
Duration : The estimated time remaining until arriving at the destination. |
arrivalTimeAtDestination |
ZonedDateTime : The arrival time with the time zone information provided for
the destination. |
create
public static TravelEstimate create (Distance remainingDistance,
Duration remainingTime,
ZonedDateTime arrivalTimeAtDestination)
Parameters |
remainingDistance |
Distance |
remainingTime |
Duration |
arrivalTimeAtDestination |
ZonedDateTime |
create
public static TravelEstimate create (Distance remainingDistance,
long remainingTimeSeconds,
DateTimeWithZone arrivalTimeAtDestination)
Parameters |
remainingDistance |
Distance |
remainingTimeSeconds |
long |
arrivalTimeAtDestination |
DateTimeWithZone |
equals
public boolean equals (Object other)
getArrivalTimeAtDestination
public DateTimeWithZone getArrivalTimeAtDestination ()
getRemainingDistance
public Distance getRemainingDistance ()
getRemainingDistanceColor
public CarColor getRemainingDistanceColor ()
getRemainingTimeColor
public CarColor getRemainingTimeColor ()
getRemainingTimeSeconds
public long getRemainingTimeSeconds ()
hashCode
public int hashCode ()
toString
public String toString ()
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples/Code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-15 UTC.