public class MapLocation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
lat
Invalidated Latitude value.
|
double |
lon
Invalidated Longitude value.
|
Constructor and Description |
---|
MapLocation(double lon,
double lat)
Create object with location value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Two location are equal if their Latitude are equal, and their Longitude are equal.
|
double |
getLat()
Get a validated Latitude value.
|
double |
getLon()
Get a validated Longitude value.
|
int |
getZoom() |
boolean |
setLat(double lat)
Set only Latitude value.
|
boolean |
setLocation(double lon,
double lat)
Set new location for this object to store.
|
boolean |
setLon(double lon)
Set only Longitude value.
|
void |
setZoom(int zoom) |
java.lang.String |
toString() |
public double lat
public double lon
public MapLocation(double lon, double lat)
lon
- longitudelat
- latitudepublic boolean setLocation(double lon, double lat)
lon
- lat
- public boolean setLat(double lat)
lat
- public boolean setLon(double lon)
lon
- public double getLat()
lat
.public double getLon()
lon
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int getZoom()
public void setZoom(int zoom)