@Experimental public class GeoMultiPolygon extends AbstractGeoJsonObject
| Constructor and Description |
|---|
GeoMultiPolygon(GeoPolygon firstPolygon,
GeoPolygon... additionalPolygons)
Instantiates a new MultiPolygon.
|
GeoMultiPolygon(List<GeoPolygon> polygons)
Instantiates a new MultiPolygon.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static GeoMultiPolygon |
fromDocument(org.bson.Document document) |
List<GeoPolygon> |
getPolygons() |
int |
hashCode() |
protected org.bson.BsonArray |
toCoordinates() |
String |
toString() |
checkType, toBsonDocumentpublic static final String TYPE
public GeoMultiPolygon(List<GeoPolygon> polygons)
polygons - the list of Polygonspublic GeoMultiPolygon(GeoPolygon firstPolygon, GeoPolygon... additionalPolygons)
firstPolygon - the first PolygonadditionalPolygons - the additional Polygonspublic List<GeoPolygon> getPolygons()
protected org.bson.BsonArray toCoordinates()
toCoordinates in class AbstractGeoJsonObjectpublic static GeoMultiPolygon fromDocument(org.bson.Document document)
Copyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.