public class LatLonPointImmutable extends java.lang.Object implements LatLonPoint
Modifier and Type | Field and Description |
---|---|
static LatLonPointImmutable |
INVALID |
Constructor and Description |
---|
LatLonPointImmutable(double lat,
double lon) |
LatLonPointImmutable(LatLonPoint pt) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(LatLonPoint pt)
Returns true if this represents the same point as pt.
|
boolean |
equals(java.lang.Object o) |
double |
getLatitude()
Returns the latitude, between +/- 90 degrees.
|
double |
getLongitude()
Returns the longitude, between +/-180 degrees
|
int |
hashCode() |
public static final LatLonPointImmutable INVALID
public LatLonPointImmutable(double lat, double lon)
public LatLonPointImmutable(LatLonPoint pt)
public double getLongitude()
LatLonPoint
getLongitude
in interface LatLonPoint
public double getLatitude()
LatLonPoint
getLatitude
in interface LatLonPoint
public boolean equals(LatLonPoint pt)
LatLonPoint
equals
in interface LatLonPoint
pt
- point to checkpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object