Class GeoJsonMultiPoint
java.lang.Object
org.springframework.data.mongodb.core.geo.GeoJsonMultiPoint
- Direct Known Subclasses:
GeoJsonLineString
public class GeoJsonMultiPoint
extends Object
implements GeoJson<Iterable<org.springframework.data.geo.Point>>
GeoJsonMultiPoint is defined as list of Points.- Since:
- 1.7
- Author:
- Christoph Strobl, Ivan Volzhev
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeoJsonMultiPoint(List<org.springframework.data.geo.Point> points) Creates a newGeoJsonMultiPointfor the givenPoints.GeoJsonMultiPoint(org.springframework.data.geo.Point point) Creates a newGeoJsonMultiPointfor the givenPoint.GeoJsonMultiPoint(org.springframework.data.geo.Point first, org.springframework.data.geo.Point second, org.springframework.data.geo.Point... others) Creates a newGeoJsonMultiPointfor the givenPoints. -
Method Summary
-
Constructor Details
-
GeoJsonMultiPoint
public GeoJsonMultiPoint(org.springframework.data.geo.Point point) Creates a newGeoJsonMultiPointfor the givenPoint.- Parameters:
point- must not be null.- Since:
- 3.2.5
-
GeoJsonMultiPoint
Creates a newGeoJsonMultiPointfor the givenPoints.- Parameters:
points- points must not be null and not empty
-
GeoJsonMultiPoint
public GeoJsonMultiPoint(org.springframework.data.geo.Point first, org.springframework.data.geo.Point second, org.springframework.data.geo.Point... others) Creates a newGeoJsonMultiPointfor the givenPoints.- Parameters:
first- must not be null.second- must not be null.others- must not be null.
-
-
Method Details
-
getType
Description copied from interface:GeoJsonString value representing the type of theGeoJsonobject. -
getCoordinates
Description copied from interface:GeoJsonThe value of the coordinates member is always anIterable. The structure for the elements within is determined byGeoJson.getType()of geometry.- Specified by:
getCoordinatesin interfaceGeoJson<Iterable<org.springframework.data.geo.Point>>- Returns:
- will never be null.
- See Also:
-
hashCode
public int hashCode() -
equals
-