public static final class LatLngBounds.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
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 LatLngBounds build()
Throws an InvalidLatLngBoundsException
when no LatLngBounds can be created.
@NonNull public LatLngBounds.Builder includes(@NonNull java.util.List<LatLng> latLngs)
latLngs
- the List of LatLng objects to be added@NonNull public LatLngBounds.Builder include(@NonNull LatLng latLng)
latLng
- the LatLng to be added