public abstract class MergingArea extends DirectionsJsonObject
Modifier and Type | Class and Description |
---|---|
static class |
MergingArea.Builder
This builder can be used to set the values describing the
MergingArea . |
static interface |
MergingArea.Type
Merging Area type.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_FROM_BOTH_SIDES
MergingArea.Type value meaning that traffic is being merged into current road from both sides. |
static java.lang.String |
TYPE_FROM_LEFT
MergingArea.Type value meaning that traffic is being merged into current road from the left side. |
static java.lang.String |
TYPE_FROM_RIGHT
MergingArea.Type value meaning that traffic is being merged into current road from the right side. |
Constructor and Description |
---|
MergingArea() |
Modifier and Type | Method and Description |
---|---|
static MergingArea.Builder |
builder()
Create a new instance of this class by using the
MergingArea.Builder class. |
static MergingArea |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract MergingArea.Builder |
toBuilder()
Convert the current
MergingArea to its builder holding the currently assigned
values. |
abstract java.lang.String |
type()
Type of the merging area.
|
static com.google.gson.TypeAdapter<MergingArea> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson
public static final java.lang.String TYPE_FROM_LEFT
MergingArea.Type
value meaning that traffic is being merged into current road from the left side.public static final java.lang.String TYPE_FROM_RIGHT
MergingArea.Type
value meaning that traffic is being merged into current road from the right side.public static final java.lang.String TYPE_FROM_BOTH_SIDES
MergingArea.Type
value meaning that traffic is being merged into current road from both sides.@Nullable public abstract java.lang.String type()
MergingArea.Type
for possible values.public static MergingArea.Builder builder()
MergingArea.Builder
class.MergingArea.Builder
for creating a new instancepublic abstract MergingArea.Builder toBuilder()
MergingArea
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 MergingArea
.MergingArea.Builder
with the same values set to match the ones defined in this
MergingArea
public static com.google.gson.TypeAdapter<MergingArea> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
objectpublic static MergingArea fromJson(java.lang.String json)
json
- a formatted valid JSON string defining a Merging Area