Package com.mongodb.client.model.geojson
Class Position
- java.lang.Object
-
- com.mongodb.client.model.geojson.Position
-
@Immutable public final class Position extends Object
A representation of a GeoJSON Position.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<Double>getValues()Gets the values of this positioninthashCode()StringtoString()
-
-
-
Constructor Detail
-
Position
public Position(List<Double> values)
Construct an instance.- Parameters:
values- the non-null values
-
Position
public Position(double first, double second, double... remaining)Construct an instance.- Parameters:
first- the first valuesecond- the second valueremaining- the remaining values
-
-