Package com.azure.core.models
Class GeoLineString
- java.lang.Object
-
- com.azure.core.models.GeoObject
-
- com.azure.core.models.GeoLineString
-
public final class GeoLineString extends GeoObject
Represents a geometric line.
-
-
Constructor Summary
Constructors Constructor Description GeoLineString(List<GeoPosition> positions)
Constructs a geometric line.GeoLineString(List<GeoPosition> positions, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
Constructs a geometric line.
-
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 line.GeoObjectType
getType()
Gets the GeoJSON type for this object.int
hashCode()
-
Methods inherited from class com.azure.core.models.GeoObject
getBoundingBox, getCustomProperties
-
-
-
-
Constructor Detail
-
GeoLineString
public GeoLineString(List<GeoPosition> positions)
Constructs a geometric line.- Parameters:
positions
- Geometric positions that define the line.- Throws:
NullPointerException
- Ifpositions
isnull
.
-
GeoLineString
public GeoLineString(List<GeoPosition> positions, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
Constructs a geometric line.- Parameters:
positions
- Geometric positions that define the line.boundingBox
- Bounding box for the line.customProperties
- Additional properties of the geometric line.- Throws:
NullPointerException
- Ifpositions
isnull
.
-
-
Method Detail
-
getCoordinates
public List<GeoPosition> getCoordinates()
Unmodifiable representation of thegeometric positions
representing this line.- Returns:
- An unmodifiable representation of the
geometric positions
representing this line.
-
getType
public GeoObjectType getType()
Description copied from class:GeoObject
Gets the GeoJSON type for this object.
-
-