Package com.mongodb.client.model.geojson
Class PolygonCoordinates
- java.lang.Object
-
- com.mongodb.client.model.geojson.PolygonCoordinates
-
public final class PolygonCoordinates extends Object
Coordinates for a GeoJSON Polygon.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description PolygonCoordinates(List<Position> exterior, List<Position>... holes)Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<Position>getExterior()Gets the exterior of the polygon.List<List<Position>>getHoles()Gets the holes in the polygon.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
PolygonCoordinates
@SafeVarargs public PolygonCoordinates(List<Position> exterior, List<Position>... holes)
Construct an instance.- Parameters:
exterior- the exterior ring of the polygonholes- optional interior rings of the polygon
-
-