public abstract class DirectionsRouteRefresh extends DirectionsRefreshJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectionsRouteRefresh.Builder
This builder can be used to set the values describing the
DirectionsRouteRefresh. |
| Constructor and Description |
|---|
DirectionsRouteRefresh() |
| Modifier and Type | Method and Description |
|---|---|
static DirectionsRouteRefresh.Builder |
builder()
Create a new instance of this class by using the
DirectionsRouteRefresh.Builder class. |
static DirectionsRouteRefresh |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.util.List<RouteLegRefresh> |
legs()
A Leg Refresh is an object contain refresh data between only two
DirectionsWaypoint. |
abstract DirectionsRouteRefresh.Builder |
toBuilder()
Convert the current
DirectionsRouteRefresh to its builder holding the currently
assigned values. |
static com.google.gson.TypeAdapter<DirectionsRouteRefresh> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
toJsonpublic static DirectionsRouteRefresh.Builder builder()
DirectionsRouteRefresh.Builder class.DirectionsRouteRefresh.Builder for creating a new instance@Nullable public abstract java.util.List<RouteLegRefresh> legs()
DirectionsWaypoint.RouteLegRefresh objectspublic abstract DirectionsRouteRefresh.Builder toBuilder()
DirectionsRouteRefresh to its builder holding the currently
assigned values. This allows you to modify a single property and then rebuild the object
resulting in an updated and modified DirectionsRouteRefresh.DirectionsRouteRefresh.Builder with the same values set to match the ones
defined in this DirectionsRouteRefreshpublic static com.google.gson.TypeAdapter<DirectionsRouteRefresh> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static DirectionsRouteRefresh fromJson(java.lang.String json)
json - a formatted valid JSON string defining a GeoJson Directions Route