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 TypeMethodDescriptionboolean
Unmodifiable representation of thegeometries
contained in this collection.getType()
Gets the GeoJSON type for this object.int
hashCode()
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
- Ifgeometries
isnull
.
-
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
- Ifgeometries
isnull
.
-
-
Method Details
-
getGeometries
Unmodifiable representation of thegeometries
contained in this collection.- Returns:
- An unmodifiable representation of the
geometries
in this collection.
-
getType
Description copied from class:GeoObject
Gets the GeoJSON type for this object. -
hashCode
public int hashCode() -
equals
-