Package com.mongodb.client.model.geojson
Class MultiPoint
- java.lang.Object
 - 
- com.mongodb.client.model.geojson.Geometry
 - 
- com.mongodb.client.model.geojson.MultiPoint
 
 
 
- 
public final class MultiPoint extends Geometry
A representation of a GeoJSON MultiPoint.- Since:
 - 3.1
 
 
- 
- 
Constructor Summary
Constructors Constructor Description MultiPoint(CoordinateReferenceSystem coordinateReferenceSystem, List<Position> coordinates)Construct an instance with the given coordinates and coordinate reference system.MultiPoint(List<Position> coordinates)Construct an instance with the given coordinates. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<Position>getCoordinates()Gets the GeoJSON coordinates of this MultiPoint.GeoJsonObjectTypegetType()Gets the GeoJSON object type.inthashCode()StringtoString()- 
Methods inherited from class com.mongodb.client.model.geojson.Geometry
getCoordinateReferenceSystem, toJson 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
MultiPoint
public MultiPoint(List<Position> coordinates)
Construct an instance with the given coordinates.- Parameters:
 coordinates- the coordinates
 
- 
MultiPoint
public MultiPoint(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, List<Position> coordinates)
Construct an instance with the given coordinates and coordinate reference system.- Parameters:
 coordinateReferenceSystem- the coordinate reference systemcoordinates- the coordinates
 
 - 
 
- 
Method Detail
- 
getType
public GeoJsonObjectType getType()
Description copied from class:GeometryGets the GeoJSON object type. 
- 
getCoordinates
public List<Position> getCoordinates()
Gets the GeoJSON coordinates of this MultiPoint.- Returns:
 - the coordinates
 
 
 - 
 
 -