Class Coordinate


  • public final class Coordinate
    extends java.lang.Object
    Coordinates with longitude and latitude values. Tha class is finalmaking a Coordinate object immutable.
    Author:
    P.J.Meisch ([email protected])
    • Constructor Summary

      Constructors 
      Constructor Description
      Coordinate​(java.lang.Double latitude, java.lang.Double longitude)
      creates a coordinate.
    • Constructor Detail

      • Coordinate

        public Coordinate​(java.lang.Double latitude,
                          java.lang.Double longitude)
        creates a coordinate. parameter order lat/lon according to EPSG:4326 spec.
        Parameters:
        latitude - latitude of the coordinate
        longitude - longitude of the coordinate
        Throws:
        java.lang.NullPointerException - if either value is null
    • Method Detail

      • getLatitude

        public final java.lang.Double getLatitude()
      • getLongitude

        public final java.lang.Double getLongitude()
      • 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