Modifier and Type | Class and Description |
---|---|
static class |
RouteStep.Builder
RouteStep builder static inner class. |
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
static RouteStep |
EMPTY |
static int |
EMPTY_ID |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.Double |
getDistance()
|
double |
getDistanceToGoal()
|
Point |
getFrom()
Start point of this step.
|
int |
getId()
Position of this RouteStep in the list of steps (
Route.getSteps() ) of the route to which it belongs. |
Point |
getTo()
End point of this step.
|
int |
hashCode() |
boolean |
isFirst()
Returns true if this is the first step in the route.
|
boolean |
isLast()
Returns true if this is the last step in the route.
|
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final int EMPTY_ID
public static final RouteStep EMPTY
public static final <any> CREATOR
public int getId()
Route.getSteps()
) of the route to which it belongs.
Also works as an unique identifier of this RouteStep in the Route
.public Point getFrom()
public Point getTo()
public double getDistanceToGoal()
getFrom()
)
and the last point in the route (getTo()
of the last step).public java.lang.Double getDistance()
getDistance
in interface Edge<Point>
public boolean isFirst()
public boolean isLast()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
public void writeToParcel(Parcel dest, int flags)