facebook4j
Class GeoLocation

java.lang.Object
  extended by facebook4j.GeoLocation
All Implemented Interfaces:
Serializable

public class GeoLocation
extends Object
implements 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(double latitude, double longitude)
          Creates a GeoLocation instance
 
Method Summary
 facebook4j.internal.org.json.JSONObject asJSONObject()
           
 String asJSONString()
           
 String asParameterString()
           
 boolean equals(Object o)
           
 double getLatitude()
          returns the latitude of the geo location
 double getLongitude()
          returns the longitude of the geo location
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoLocation

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

Parameters:
latitude - the latitude
longitude - the longitude
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 String asParameterString()

asJSONObject

public facebook4j.internal.org.json.JSONObject asJSONObject()

asJSONString

public String asJSONString()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2019. All rights reserved.