Class GeometryCollection

java.lang.Object
com.mongodb.client.model.geojson.Geometry
com.mongodb.client.model.geojson.GeometryCollection

@Deprecated(since="2021-05-27") public final class GeometryCollection extends Geometry
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A representation of a GeoJSON GeometryCollection.
Since:
3.1
  • Constructor Details

    • GeometryCollection

      public GeometryCollection(List<? extends Geometry> geometries)
      Deprecated.
      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)
      Deprecated.
      Construct an instance with the given list of Geometry objects
      Parameters:
      coordinateReferenceSystem - the coordinate reference system
      geometries - the list of Geometry objects
  • Method Details

    • getType

      public GeoJsonObjectType getType()
      Deprecated.
      Description copied from class: Geometry
      Gets the GeoJSON object type.
      Specified by:
      getType in class Geometry
      Returns:
      the type
    • getGeometries

      public List<? extends Geometry> getGeometries()
      Deprecated.
      Gets the list of Geometry objects in this collection.
      Returns:
      the list
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Geometry
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Geometry
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object