Package com.azure.core.models
Class GeoLineString
java.lang.Object
com.azure.core.models.GeoObject
com.azure.core.models.GeoLineString
Represents a geometric line.
-
Constructor Summary
ConstructorDescriptionGeoLineString
(List<GeoPosition> positions) Constructs a geometric line.GeoLineString
(List<GeoPosition> positions, GeoBoundingBox boundingBox, Map<String, Object> customProperties) Constructs a geometric line. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Unmodifiable representation of thegeometric positions
representing this line.getType()
Gets the GeoJSON type for this object.int
hashCode()
Methods inherited from class com.azure.core.models.GeoObject
getBoundingBox, getCustomProperties
-
Constructor Details
-
GeoLineString
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 Details
-
getCoordinates
Unmodifiable representation of thegeometric positions
representing this line.- Returns:
- An unmodifiable representation of the
geometric positions
representing this line.
-
getType
Description copied from class:GeoObject
Gets the GeoJSON type for this object. -
hashCode
public int hashCode() -
equals
-