Package com.azure.core.models
Class GeoCollection
java.lang.Object
com.azure.core.models.GeoObject
com.azure.core.models.GeoCollection
Represents a heterogeneous collection of
GeoObjects.-
Constructor Summary
ConstructorsConstructorDescriptionGeoCollection(List<GeoObject> geometries) Constructs aGeoCollection.GeoCollection(List<GeoObject> geometries, GeoBoundingBox boundingBox, Map<String, Object> customProperties) Constructs aGeoCollection. -
Method Summary
Modifier and TypeMethodDescriptionbooleanUnmodifiable representation of thegeometriescontained in this collection.getType()Gets the GeoJSON type for this object.inthashCode()Methods inherited from class com.azure.core.models.GeoObject
getBoundingBox, getCustomProperties
-
Constructor Details
-
GeoCollection
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 Details
-
getGeometries
Unmodifiable representation of thegeometriescontained in this collection.- Returns:
- An unmodifiable representation of the
geometriesin this collection.
-
getType
Description copied from class:GeoObjectGets the GeoJSON type for this object. -
hashCode
public int hashCode() -
equals
-