com.restfb.types
Class Location

java.lang.Object
  extended by com.restfb.types.Location
All Implemented Interfaces:
Serializable

public class Location
extends Object
implements Serializable

Represents a location (address and latitude/longitude).

This is used by several Graph API types, e.g. Post and Page.

Since:
1.6.8
Author:
Mark Allen
See Also:
Serialized Form

Constructor Summary
Location()
           
 
Method Summary
 boolean equals(Object that)
           
 String getCity()
          The city name of this location.
 String getCountry()
          The country name of this location.
 Double getLatitude()
          The latitude of this location.
 Double getLongitude()
          The longitude of this location.
 String getState()
          The state name of this location.
 String getStreet()
          The street address of this location.
 String getZip()
          The postal code of this location.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object that)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getStreet

public String getStreet()
The street address of this location.

Returns:
The street address of this location.

getCity

public String getCity()
The city name of this location.

Returns:
The city name of this location.

getState

public String getState()
The state name of this location.

Returns:
The state name of this location.

getCountry

public String getCountry()
The country name of this location.

Returns:
The country name of this location.

getZip

public String getZip()
The postal code of this location.

Returns:
The postal code of this location.

getLatitude

public Double getLatitude()
The latitude of this location.

Returns:
The latitude of this location.

getLongitude

public Double getLongitude()
The longitude of this location.

Returns:
The longitude of this location.


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.