facebook4j
Class GeoLocation

java.lang.Object
  extended by 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

Field Summary
private  JSONObject json
           
protected  double latitude
           
protected  double longitude
           
private static long serialVersionUID
           
 
Constructor Summary
GeoLocation()
           
GeoLocation(double latitude, double longitude)
          Creates a GeoLocation instance
 
Method Summary
 JSONObject asJSONObject()
           
 java.lang.String asJSONString()
           
 java.lang.String asParameterString()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

latitude

protected double latitude

longitude

protected double longitude

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

json

private JSONObject json
Constructor Detail

GeoLocation

public GeoLocation(double latitude,
                   double longitude)
Creates a GeoLocation instance

Parameters:
latitude - the latitude
longitude - the longitude

GeoLocation

GeoLocation()
Method Detail

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