Package com.azure.core.models
Class GeoPolygonCollection
java.lang.Object
com.azure.core.models.GeoObject
com.azure.core.models.GeoPolygonCollection
Represents a collection of
GeoPolygons.-
Constructor Summary
ConstructorsConstructorDescriptionGeoPolygonCollection(List<GeoPolygon> polygons) Constructs aGeoPolygonCollection.GeoPolygonCollection(List<GeoPolygon> polygons, GeoBoundingBox boundingBox, Map<String, Object> customProperties) Constructs aGeoPolygonCollection. -
Method Summary
Modifier and TypeMethodDescriptionbooleanUnmodifiable representation of thegeometric polygonsrepresenting this multi-polygon.getType()Gets the GeoJSON type for this object.inthashCode()Methods inherited from class com.azure.core.models.GeoObject
getBoundingBox, getCustomProperties
-
Constructor Details
-
GeoPolygonCollection
Constructs aGeoPolygonCollection.- Parameters:
polygons- The polygons that define the multi-polygon.- Throws:
NullPointerException- Ifpolygonsisnull.
-
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- Ifpolygonsisnull.
-
-
Method Details
-
getPolygons
Unmodifiable representation of thegeometric polygonsrepresenting this multi-polygon.- Returns:
- An unmodifiable representation of the
geometric polygonsrepresenting this multi-polygon.
-
getType
Description copied from class:GeoObjectGets the GeoJSON type for this object. -
hashCode
public int hashCode() -
equals
-