Package com.azure.core.models
Class GeoCollection
- java.lang.Object
-
- com.azure.core.models.GeoObject
-
- com.azure.core.models.GeoCollection
-
public final class GeoCollection extends GeoObject
Represents a heterogeneous collection ofGeoObjects.
-
-
Constructor Summary
Constructors Constructor Description GeoCollection(List<GeoObject> geometries)Constructs aGeoCollection.GeoCollection(List<GeoObject> geometries, GeoBoundingBox boundingBox, Map<String,Object> customProperties)Constructs aGeoCollection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<GeoObject>getGeometries()Unmodifiable representation of thegeometriescontained in this collection.GeoObjectTypegetType()Gets the GeoJSON type for this object.inthashCode()-
Methods inherited from class com.azure.core.models.GeoObject
getBoundingBox, getCustomProperties
-
-
-
-
Constructor Detail
-
GeoCollection
public GeoCollection(List<GeoObject> geometries)
Constructs aGeoCollection.- Parameters:
geometries- The geometries in the collection.- Throws:
NullPointerException- Ifgeometriesisnull.
-
GeoCollection
public GeoCollection(List<GeoObject> geometries, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
Constructs aGeoCollection.- Parameters:
geometries- The geometries in the collection.boundingBox- Bounding box for theGeoCollection.customProperties- Additional properties of theGeoCollection.- Throws:
NullPointerException- Ifgeometriesisnull.
-
-
Method Detail
-
getGeometries
public List<GeoObject> getGeometries()
Unmodifiable representation of thegeometriescontained in this collection.- Returns:
- An unmodifiable representation of the
geometriesin this collection.
-
getType
public GeoObjectType getType()
Description copied from class:GeoObjectGets the GeoJSON type for this object.
-
-