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