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 booleanequals(Object obj)List<GeoPosition>getCoordinates()Unmodifiable representation of thegeometric positionsrepresenting this line.GeoObjectTypegetType()Gets the GeoJSON type for this object.inthashCode()-
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- Ifpositionsisnull.
-
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- Ifpositionsisnull.
-
-
Method Detail
-
getCoordinates
public List<GeoPosition> getCoordinates()
Unmodifiable representation of thegeometric positionsrepresenting this line.- Returns:
- An unmodifiable representation of the
geometric positionsrepresenting this line.
-
getType
public GeoObjectType getType()
Description copied from class:GeoObjectGets the GeoJSON type for this object.
-
-