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 booleanequals(Object obj)List<GeoPosition>getCoordinates()Unmodifiable representation of thegeometric positionsrepresenting this linear ring.inthashCode()
-
-
-
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- Ifcoordinatesis null.IllegalArgumentException- Ifcoordinateshas less than 4 elements or the first and last elements aren't equivalent.
-
-
Method Detail
-
getCoordinates
public List<GeoPosition> getCoordinates()
Unmodifiable representation of thegeometric positionsrepresenting this linear ring.- Returns:
- An unmodifiable representation of the
geometric positionsrepresenting this linear ring.
-
-