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()
LatLonPointgetLongitude in interface LatLonPointpublic double getLatitude()
LatLonPointgetLatitude in interface LatLonPointpublic boolean equals(LatLonPoint pt)
LatLonPointequals in interface LatLonPointpt - point to checkpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object