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
ConstructorDescriptionGeoLinearRing
(List<GeoPosition> coordinates) Constructs a new linear ring with the passed coordinates. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Unmodifiable representation of thegeometric positions
representing this linear ring.int
hashCode()
-
Constructor Details
-
GeoLinearRing
Constructs a new linear ring with the passed coordinates.- Parameters:
coordinates
- The coordinates of the linear ring.- Throws:
NullPointerException
- Ifcoordinates
is null.IllegalArgumentException
- Ifcoordinates
has less than 4 elements or the first and last elements aren't equivalent.
-
-
Method Details
-
getCoordinates
Unmodifiable representation of thegeometric positions
representing this linear ring.- Returns:
- An unmodifiable representation of the
geometric positions
representing this linear ring.
-
hashCode
public int hashCode() -
equals
-