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 boolean
equals(Object obj)
List<GeoObject>
getGeometries()
Unmodifiable representation of thegeometries
contained in this collection.GeoObjectType
getType()
Gets the GeoJSON type for this object.int
hashCode()
-
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
- 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 Detail
-
getGeometries
public List<GeoObject> getGeometries()
Unmodifiable representation of thegeometries
contained in this collection.- Returns:
- An unmodifiable representation of the
geometries
in this collection.
-
getType
public GeoObjectType getType()
Description copied from class:GeoObject
Gets the GeoJSON type for this object.
-
-