Package com.azure.core.models
Class GeoPolygonCollection
- java.lang.Object
-
- com.azure.core.models.GeoObject
-
- com.azure.core.models.GeoPolygonCollection
-
public final class GeoPolygonCollection extends GeoObject
Represents a collection ofGeoPolygons
.
-
-
Constructor Summary
Constructors Constructor Description GeoPolygonCollection(List<GeoPolygon> polygons)
Constructs aGeoPolygonCollection
.GeoPolygonCollection(List<GeoPolygon> polygons, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
Constructs aGeoPolygonCollection
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<GeoPolygon>
getPolygons()
Unmodifiable representation of thegeometric polygons
representing this multi-polygon.GeoObjectType
getType()
Gets the GeoJSON type for this object.int
hashCode()
-
Methods inherited from class com.azure.core.models.GeoObject
getBoundingBox, getCustomProperties
-
-
-
-
Constructor Detail
-
GeoPolygonCollection
public GeoPolygonCollection(List<GeoPolygon> polygons)
Constructs aGeoPolygonCollection
.- Parameters:
polygons
- The polygons that define the multi-polygon.- Throws:
NullPointerException
- Ifpolygons
isnull
.
-
GeoPolygonCollection
public GeoPolygonCollection(List<GeoPolygon> polygons, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
Constructs aGeoPolygonCollection
.- Parameters:
polygons
- The polygons that define the multi-polygon.boundingBox
- Bounding box for the multi-polygon.customProperties
- Additional properties of the multi-polygon.- Throws:
NullPointerException
- Ifpolygons
isnull
.
-
-
Method Detail
-
getPolygons
public List<GeoPolygon> getPolygons()
Unmodifiable representation of thegeometric polygons
representing this multi-polygon.- Returns:
- An unmodifiable representation of the
geometric polygons
representing this multi-polygon.
-
getType
public GeoObjectType getType()
Description copied from class:GeoObject
Gets the GeoJSON type for this object.
-
-