facebook4j
Class GeoLocation
java.lang.Object
facebook4j.GeoLocation
- All Implemented Interfaces:
- java.io.Serializable
public class GeoLocation
- extends java.lang.Object
- implements java.io.Serializable
A data class representing geo location.
- Author:
- Yusuke Yamamoto - yusuke at mac.com, Ryuji Yamashita - roundrop at gmail.com
- See Also:
- Serialized Form
|
Constructor Summary |
GeoLocation()
|
GeoLocation(double latitude,
double longitude)
Creates a GeoLocation instance |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
latitude
protected double latitude
longitude
protected double longitude
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
json
private JSONObject json
GeoLocation
public GeoLocation(double latitude,
double longitude)
- Creates a GeoLocation instance
- Parameters:
latitude - the latitudelongitude - the longitude
GeoLocation
GeoLocation()
getLatitude
public double getLatitude()
- returns the latitude of the geo location
- Returns:
- the latitude
getLongitude
public double getLongitude()
- returns the longitude of the geo location
- Returns:
- the longitude
asParameterString
public java.lang.String asParameterString()
asJSONObject
public JSONObject asJSONObject()
asJSONString
public java.lang.String asJSONString()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object