Package com.azure.core.models
Class GeoLinearRing
- java.lang.Object
-
- com.azure.core.models.GeoLinearRing
-
public final class GeoLinearRing extends Object
Represents a linear ring that is part of aGeoPolygon
.
-
-
Constructor Summary
Constructors Constructor Description GeoLinearRing(List<GeoPosition> coordinates)
Constructs a new linear ring with the passed coordinates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<GeoPosition>
getCoordinates()
Unmodifiable representation of thegeometric positions
representing this linear ring.int
hashCode()
-
-
-
Constructor Detail
-
GeoLinearRing
public GeoLinearRing(List<GeoPosition> coordinates)
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 Detail
-
getCoordinates
public List<GeoPosition> getCoordinates()
Unmodifiable representation of thegeometric positions
representing this linear ring.- Returns:
- An unmodifiable representation of the
geometric positions
representing this linear ring.
-
-