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