Class GeoJsonLineString
java.lang.Object
org.springframework.data.elasticsearch.core.geo.GeoJsonLineString
- Since:
- 4.1
- Author:
- Christoph Strobl, Peter-Josef Meisch
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
The value of the coordinates member is always anIterable
.getType()
String value representing the type of theGeoJson
object.int
hashCode()
static GeoJsonLineString
Creates a newGeoJsonLineString
for the givenPoint
s.static GeoJsonLineString
Creates a newGeoJsonLineString
for the givenGeoPoint
s.static GeoJsonLineString
Creates a newGeoJsonLineString
for the givenPoint
s.static GeoJsonLineString
ofGeoPoints
(List<GeoPoint> geoPoints) Creates a newGeoJsonLineString
for the givenGeoPoint
s.toString()
-
Field Details
-
TYPE
- See Also:
-
-
Method Details
-
of
Creates a newGeoJsonLineString
for the givenPoint
s.- Parameters:
points
- points must not be null and have at least 2 entries.
-
of
Creates a newGeoJsonLineString
for the givenPoint
s.- Parameters:
first
- must not be null.second
- must not be null.others
- must not be null.
-
ofGeoPoints
Creates a newGeoJsonLineString
for the givenGeoPoint
s.- Parameters:
geoPoints
- geoPoints must not be null and have at least 2 entries.
-
of
Creates a newGeoJsonLineString
for the givenGeoPoint
s.- Parameters:
first
- must not be null.second
- must not be null.others
- must not be null.
-
getType
Description copied from interface:GeoJson
String value representing the type of theGeoJson
object. -
getCoordinates
Description copied from interface:GeoJson
The value of the coordinates member is always anIterable
. The structure for the elements within is determined byGeoJson.getType()
of geometry.- Specified by:
getCoordinates
in interfaceGeoJson<Iterable<Point>>
- Returns:
- will never be null.
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-