Module spring.data.mongodb
Class GeoJsonMultiPolygon
java.lang.Object
org.springframework.data.mongodb.core.geo.GeoJsonMultiPolygon
- All Implemented Interfaces:
GeoJson<Iterable<GeoJsonPolygon>>
GeoJsonMultiPolygon is defined as a list of GeoJsonPolygons.- Since:
- 1.7
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionGeoJsonMultiPolygon(List<GeoJsonPolygon> polygons) Creates a newGeoJsonMultiPolygonfor the givenGeoJsonPolygons. -
Method Summary
-
Constructor Details
-
GeoJsonMultiPolygon
Creates a newGeoJsonMultiPolygonfor the givenGeoJsonPolygons.- Parameters:
polygons- must not be null.
-
-
Method Details
-
getType
Description copied from interface:GeoJsonString value representing the type of theGeoJsonobject.- Specified by:
getTypein interfaceGeoJson<Iterable<GeoJsonPolygon>>- Returns:
- will never be null.
- See Also:
-
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<GeoJsonPolygon>>- Returns:
- will never be null.
- See Also:
-
hashCode
public int hashCode() -
equals
-