Package com.sothawo.mapjfx
Class Coordinate
- java.lang.Object
-
- com.sothawo.mapjfx.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Double
getLatitude()
java.lang.Double
getLongitude()
int
hashCode()
java.lang.String
toString()
-
-
-
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 coordinatelongitude
- 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-