public class GeoLocation
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected double |
latitude |
protected double |
longitude |
| Constructor and Description |
|---|
GeoLocation(double latitude,
double longitude)
Creates a GeoLocation instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
double |
getLatitude()
returns the latitude of the geo location
|
double |
getLongitude()
returns the longitude of the geo location
|
int |
hashCode() |
java.lang.String |
toString() |
public GeoLocation(double latitude,
double longitude)
latitude - the latitudelongitude - the longitudepublic double getLatitude()
public double getLongitude()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object