Class Position


  • @Immutable
    public final class Position
    extends java.lang.Object
    A representation of a GeoJSON Position.
    Since:
    3.1
    • Constructor Summary

      Constructors 
      Constructor Description
      Position​(double first, double second, double... remaining)
      Construct an instance.
      Position​(java.util.List<java.lang.Double> values)
      Construct an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.Double> getValues()
      Gets the values of this position
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Position

        public Position​(java.util.List<java.lang.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 Detail

      • getValues

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object