public abstract class IntersectionLanes extends DirectionsJsonObject
Modifier and Type | Class and Description |
---|---|
static class |
IntersectionLanes.Builder
This builder can be used to set the values describing the
IntersectionLanes . |
Constructor and Description |
---|
IntersectionLanes() |
Modifier and Type | Method and Description |
---|---|
static IntersectionLanes.Builder |
builder()
Create a new instance of this class by using the
IntersectionLanes.Builder class. |
static IntersectionLanes |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.util.List<java.lang.String> |
indications()
Array that can be made up of multiple signs such as
left , right , etc. |
abstract IntersectionLanes.Builder |
toBuilder()
Convert the current
IntersectionLanes to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<IntersectionLanes> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract java.lang.Boolean |
valid()
Provides a boolean value you can use to determine if the given lane is valid for the user to
complete the maneuver.
|
toJson
public static IntersectionLanes.Builder builder()
IntersectionLanes.Builder
class.IntersectionLanes.Builder
for creating a new instance@Nullable public abstract java.lang.Boolean valid()
@Nullable public abstract java.util.List<java.lang.String> indications()
left
, right
, etc.public abstract IntersectionLanes.Builder toBuilder()
IntersectionLanes
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 IntersectionLanes
.IntersectionLanes.Builder
with the same values set to match the ones defined
in this IntersectionLanes
public static com.google.gson.TypeAdapter<IntersectionLanes> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
objectpublic static IntersectionLanes fromJson(java.lang.String json)
json
- a formatted valid JSON string defining an IntersectionLanes