Class GeoJsonMultiPoint
java.lang.Object
org.springframework.data.mongodb.core.geo.GeoJsonMultiPoint
- Direct Known Subclasses:
GeoJsonLineString
GeoJsonMultiPoint
is defined as list of Point
s.- Since:
- 1.7
- Author:
- Christoph Strobl, Ivan Volzhev
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeoJsonMultiPoint
(List<Point> points) Creates a newGeoJsonMultiPoint
for the givenPoint
s.GeoJsonMultiPoint
(Point point) Creates a newGeoJsonMultiPoint
for the givenPoint
.GeoJsonMultiPoint
(Point first, Point second, Point... others) Creates a newGeoJsonMultiPoint
for the givenPoint
s. -
Method Summary
-
Constructor Details
-
GeoJsonMultiPoint
Creates a newGeoJsonMultiPoint
for the givenPoint
.- Parameters:
point
- must not be null.- Since:
- 3.2.5
-
GeoJsonMultiPoint
Creates a newGeoJsonMultiPoint
for the givenPoint
s.- Parameters:
points
- points must not be null and not empty
-
GeoJsonMultiPoint
Creates a newGeoJsonMultiPoint
for the givenPoint
s.- Parameters:
first
- must not be null.second
- must not be null.others
- must not be null.
-
-
Method Details
-
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:
-
hashCode
public int hashCode() -
equals
-