Package com.mongodb.client.model.geojson
Class MultiPolygon
- java.lang.Object
-
- com.mongodb.client.model.geojson.Geometry
-
- com.mongodb.client.model.geojson.MultiPolygon
-
public final class MultiPolygon extends Geometry
A representation of a GeoJSON MultiPolygon.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description MultiPolygon(CoordinateReferenceSystem coordinateReferenceSystem, List<PolygonCoordinates> coordinates)Construct an instance.MultiPolygon(List<PolygonCoordinates> coordinates)Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<PolygonCoordinates>getCoordinates()Gets the coordinates.GeoJsonObjectTypegetType()Gets the GeoJSON object type.inthashCode()StringtoString()-
Methods inherited from class com.mongodb.client.model.geojson.Geometry
getCoordinateReferenceSystem, toJson
-
-
-
-
Constructor Detail
-
MultiPolygon
public MultiPolygon(List<PolygonCoordinates> coordinates)
Construct an instance.- Parameters:
coordinates- the coordinates
-
MultiPolygon
public MultiPolygon(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, List<PolygonCoordinates> coordinates)
Construct an instance.- Parameters:
coordinateReferenceSystem- the coordinate reference systemcoordinates- the coordinates
-
-
Method Detail
-
getType
public GeoJsonObjectType getType()
Description copied from class:GeometryGets the GeoJSON object type.
-
getCoordinates
public List<PolygonCoordinates> getCoordinates()
Gets the coordinates.- Returns:
- the coordinates
-
-