[android] latlngbounds includes added in builder

Fixes #5574

added includes test
This commit is contained in:
Cameron
2016-07-11 10:48:47 -04:00
committed by Tobrun Van Nuland
parent fd5ee40506
commit 765e8d2be1
3 changed files with 36 additions and 2 deletions

View File

@@ -290,6 +290,13 @@ public class LatLngBounds implements Parcelable {
return LatLngBounds.fromLatLngs(mLatLngList);
}
public Builder includes(List<LatLng> latLngs){
for (LatLng point : latLngs) {
mLatLngList.add(point);
}
return this;
}
public Builder include(@NonNull LatLng latLng) {
mLatLngList.add(latLng);
return this;