Package com.mongodb.client.model.geojson
Class GeometryCollection
java.lang.Object
com.mongodb.client.model.geojson.Geometry
com.mongodb.client.model.geojson.GeometryCollection
A representation of a GeoJSON GeometryCollection.
- Since:
 - 3.1
 
- 
Constructor Summary
ConstructorsConstructorDescriptionGeometryCollection(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
Methods inherited from class com.mongodb.client.model.geojson.Geometry
getCoordinateReferenceSystem, toJson 
- 
Constructor Details
- 
GeometryCollection
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 Details
- 
getType
Description copied from class:GeometryGets the GeoJSON object type. - 
getGeometries
Gets the list of Geometry objects in this collection.- Returns:
 - the list
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -