public static final class LatLngBounds.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder()
Constructs a builder to compose LatLng objects to a LatLngBounds.
|
| Modifier and Type | Method and Description |
|---|---|
LatLngBounds |
build()
Builds a new LatLngBounds.
|
LatLngBounds.Builder |
include(LatLng latLng)
Adds a LatLng object to the LatLngBounds.Builder.
|
LatLngBounds.Builder |
includes(java.util.List<LatLng> latLngs)
Adds a LatLng object to the LatLngBounds.Builder.
|
public Builder()
public LatLngBounds build()
Throws an InvalidLatLngBoundsException when no LatLngBounds can be created.
public LatLngBounds.Builder includes(java.util.List<LatLng> latLngs)
latLngs - the List of LatLng objects to be addedpublic LatLngBounds.Builder include(@NonNull LatLng latLng)
latLng - the LatLng to be added