twitter4j
Class PlaceJSONImpl

java.lang.Object
  extended by twitter4j.TwitterResponseImpl
      extended by twitter4j.PlaceJSONImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Place>, Place, TwitterResponse

final class PlaceJSONImpl
extends TwitterResponseImpl
implements Place, java.io.Serializable

Since:
Twitter4J 2.1.1
Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
private  GeoLocation[][] boundingBoxCoordinates
           
private  java.lang.String boundingBoxType
           
private  Place[] containedWithIn
           
private  java.lang.String country
           
private  java.lang.String countryCode
           
private  java.lang.String fullName
           
private  GeoLocation[][] geometryCoordinates
           
private  java.lang.String geometryType
           
private  java.lang.String id
           
private  java.lang.String name
           
private  java.lang.String placeType
           
private static long serialVersionUID
           
private  java.lang.String streetAddress
           
private  java.lang.String url
           
 
Constructor Summary
PlaceJSONImpl(twitter4j.internal.http.HttpResponse res, Configuration conf)
           
PlaceJSONImpl(twitter4j.internal.org.json.JSONObject json)
           
PlaceJSONImpl(twitter4j.internal.org.json.JSONObject json, twitter4j.internal.http.HttpResponse res)
           
 
Method Summary
 int compareTo(Place that)
           
(package private) static ResponseList<Place> createPlaceList(twitter4j.internal.http.HttpResponse res, Configuration conf)
           
(package private) static ResponseList<Place> createPlaceList(twitter4j.internal.org.json.JSONArray list, twitter4j.internal.http.HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 GeoLocation[][] getBoundingBoxCoordinates()
           
 java.lang.String getBoundingBoxType()
           
 Place[] getContainedWithIn()
           
 java.lang.String getCountry()
           
 java.lang.String getCountryCode()
           
 java.lang.String getFullName()
           
 GeoLocation[][] getGeometryCoordinates()
           
 java.lang.String getGeometryType()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.lang.String getPlaceType()
           
 java.lang.String getStreetAddress()
           
 java.lang.String getURL()
           
 int hashCode()
           
private  void init(twitter4j.internal.org.json.JSONObject json)
           
 java.lang.String toString()
           
 
Methods inherited from class twitter4j.TwitterResponseImpl
getRateLimitStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

streetAddress

private java.lang.String streetAddress

countryCode

private java.lang.String countryCode

id

private java.lang.String id

country

private java.lang.String country

placeType

private java.lang.String placeType

url

private java.lang.String url

fullName

private java.lang.String fullName

boundingBoxType

private java.lang.String boundingBoxType

boundingBoxCoordinates

private GeoLocation[][] boundingBoxCoordinates

geometryType

private java.lang.String geometryType

geometryCoordinates

private GeoLocation[][] geometryCoordinates

containedWithIn

private Place[] containedWithIn

serialVersionUID

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

PlaceJSONImpl

PlaceJSONImpl(twitter4j.internal.http.HttpResponse res,
              Configuration conf)
        throws TwitterException
Throws:
TwitterException

PlaceJSONImpl

PlaceJSONImpl(twitter4j.internal.org.json.JSONObject json,
              twitter4j.internal.http.HttpResponse res)
        throws TwitterException
Throws:
TwitterException

PlaceJSONImpl

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

init

private void init(twitter4j.internal.org.json.JSONObject json)
           throws TwitterException
Throws:
TwitterException

compareTo

public int compareTo(Place that)
Specified by:
compareTo in interface java.lang.Comparable<Place>

createPlaceList

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

createPlaceList

static ResponseList<Place> createPlaceList(twitter4j.internal.org.json.JSONArray list,
                                           twitter4j.internal.http.HttpResponse res,
                                           Configuration conf)
                                    throws TwitterException
Throws:
TwitterException

getName

public java.lang.String getName()
Specified by:
getName in interface Place

getStreetAddress

public java.lang.String getStreetAddress()
Specified by:
getStreetAddress in interface Place

getCountryCode

public java.lang.String getCountryCode()
Specified by:
getCountryCode in interface Place

getId

public java.lang.String getId()
Specified by:
getId in interface Place

getCountry

public java.lang.String getCountry()
Specified by:
getCountry in interface Place

getPlaceType

public java.lang.String getPlaceType()
Specified by:
getPlaceType in interface Place

getURL

public java.lang.String getURL()
Specified by:
getURL in interface Place

getFullName

public java.lang.String getFullName()
Specified by:
getFullName in interface Place

getBoundingBoxType

public java.lang.String getBoundingBoxType()
Specified by:
getBoundingBoxType in interface Place

getBoundingBoxCoordinates

public GeoLocation[][] getBoundingBoxCoordinates()
Specified by:
getBoundingBoxCoordinates in interface Place

getGeometryType

public java.lang.String getGeometryType()
Specified by:
getGeometryType in interface Place

getGeometryCoordinates

public GeoLocation[][] getGeometryCoordinates()
Specified by:
getGeometryCoordinates in interface Place

getContainedWithIn

public Place[] getContainedWithIn()
Specified by:
getContainedWithIn in interface Place

equals

public boolean equals(java.lang.Object obj)
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