Package com.azure.core.models
Class GeoLinearRing
java.lang.Object
com.azure.core.models.GeoLinearRing
Represents a linear ring that is part of a
GeoPolygon.-
Constructor Summary
ConstructorsConstructorDescriptionGeoLinearRing(List<GeoPosition> coordinates) Constructs a new linear ring with the passed coordinates. -
Method Summary
Modifier and TypeMethodDescriptionbooleanUnmodifiable representation of thegeometric positionsrepresenting this linear ring.inthashCode()
-
Constructor Details
-
GeoLinearRing
Constructs a new linear ring with the passed coordinates.- Parameters:
coordinates- The coordinates of the linear ring.- Throws:
NullPointerException- Ifcoordinatesis null.IllegalArgumentException- Ifcoordinateshas less than 4 elements or the first and last elements aren't equivalent.
-
-
Method Details
-
getCoordinates
Unmodifiable representation of thegeometric positionsrepresenting this linear ring.- Returns:
- An unmodifiable representation of the
geometric positionsrepresenting this linear ring.
-
hashCode
public int hashCode() -
equals
-