twitter4j
Class LocationJSONImpl

java.lang.Object
  extended by twitter4j.LocationJSONImpl
All Implemented Interfaces:
java.io.Serializable, Location

final class LocationJSONImpl
extends java.lang.Object
implements Location

Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
private  java.lang.String countryCode
           
private  java.lang.String countryName
           
private  java.lang.String name
           
private  int placeCode
           
private  java.lang.String placeName
           
private static long serialVersionUID
           
private  java.lang.String url
           
private  int woeid
           
 
Constructor Summary
LocationJSONImpl(twitter4j.internal.org.json.JSONObject location)
           
 
Method Summary
(package private) static ResponseList<Location> createLocationList(twitter4j.internal.http.HttpResponse res, Configuration conf)
           
(package private) static ResponseList<Location> createLocationList(twitter4j.internal.org.json.JSONArray list, boolean storeJSON)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getCountryCode()
          
 java.lang.String getCountryName()
          
 java.lang.String getName()
          
 int getPlaceCode()
          
 java.lang.String getPlaceName()
          
 java.lang.String getURL()
          
 int getWoeid()
          
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

woeid

private final int woeid

countryName

private final java.lang.String countryName

countryCode

private final java.lang.String countryCode

placeName

private final java.lang.String placeName

placeCode

private final int placeCode

name

private final java.lang.String name

url

private final java.lang.String url

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

LocationJSONImpl

LocationJSONImpl(twitter4j.internal.org.json.JSONObject location)
           throws TwitterException
Throws:
TwitterException
Method Detail

createLocationList

static ResponseList<Location> createLocationList(twitter4j.internal.http.HttpResponse res,
                                                 Configuration conf)
                                          throws TwitterException
Throws:
TwitterException

createLocationList

static ResponseList<Location> createLocationList(twitter4j.internal.org.json.JSONArray list,
                                                 boolean storeJSON)
                                          throws TwitterException
Throws:
TwitterException

getWoeid

public int getWoeid()

Specified by:
getWoeid in interface Location

getCountryName

public java.lang.String getCountryName()

Specified by:
getCountryName in interface Location

getCountryCode

public java.lang.String getCountryCode()

Specified by:
getCountryCode in interface Location

getPlaceName

public java.lang.String getPlaceName()

Specified by:
getPlaceName in interface Location

getPlaceCode

public int getPlaceCode()

Specified by:
getPlaceCode in interface Location

getName

public java.lang.String getName()

Specified by:
getName in interface Location

getURL

public java.lang.String getURL()

Specified by:
getURL in interface Location

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