public abstract class OptimizationWaypoint
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
OptimizationWaypoint.Builder
This builder can be used to set the values describing the
OptimizationWaypoint. |
| Constructor and Description |
|---|
OptimizationWaypoint() |
| Modifier and Type | Method and Description |
|---|---|
static OptimizationWaypoint.Builder |
builder()
Create a new instance of this class by using the
OptimizationWaypoint.Builder class. |
com.mapbox.geojson.Point |
location()
A
Point representing this waypoint location. |
abstract java.lang.String |
name()
Provides the way name which the waypoint's coordinate is snapped to.
|
abstract OptimizationWaypoint.Builder |
toBuilder()
Convert the current
OptimizationWaypoint to its builder holding the currently assigned
values. |
abstract int |
tripsIndex()
Index to the trip object in the trips array that contains this waypoint.
|
static com.google.gson.TypeAdapter<OptimizationWaypoint> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract int |
waypointIndex()
Index of the waypoint inside the optimization route.
|
@NonNull public static OptimizationWaypoint.Builder builder()
OptimizationWaypoint.Builder class.OptimizationWaypoint.Builder for creating a new instance@SerializedName(value="waypoint_index") public abstract int waypointIndex()
@SerializedName(value="trips_index") public abstract int tripsIndex()
@Nullable public abstract java.lang.String name()
@Nullable public com.mapbox.geojson.Point location()
Point representing this waypoint location.public abstract OptimizationWaypoint.Builder toBuilder()
OptimizationWaypoint to its builder holding the currently assigned
values. This allows you to modify a single variable and then rebuild the object resulting in
an updated and modified OptimizationWaypoint.OptimizationWaypoint.Builder with the same values set to match the ones
defined in this OptimizationWaypointpublic static com.google.gson.TypeAdapter<OptimizationWaypoint> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson object