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
  • Constructor Details

    • 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 value
      second - the second value
      remaining - the remaining values
  • Method Details

    • getValues

      public List<Double> getValues()
      Gets the values of this position
      Returns:
      the values of the position
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object