twitter4j
Class SimilarPlacesImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by twitter4j.ResponseListImpl<Place>
                  extended by twitter4j.SimilarPlacesImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Place>, java.util.Collection<Place>, java.util.List<Place>, java.util.RandomAccess, ResponseList<Place>, SimilarPlaces, TwitterResponse

public class SimilarPlacesImpl
extends ResponseListImpl<Place>
implements SimilarPlaces

Since:
Twitter4J 2.1.7
Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  java.lang.String token
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SimilarPlacesImpl(ResponseList<Place> places, twitter4j.internal.http.HttpResponse res, java.lang.String token)
           
 
Method Summary
(package private) static SimilarPlaces createSimilarPlaces(twitter4j.internal.http.HttpResponse res)
           
 java.lang.String getToken()
          Returns the token needed to be able to create a new place with GeoMethods.createPlace(String, String, String, GeoLocation, String).
 
Methods inherited from class twitter4j.ResponseListImpl
getFeatureSpecificRateLimitStatus, getRateLimitStatus
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface twitter4j.ResponseList
getFeatureSpecificRateLimitStatus, getRateLimitStatus
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

token

private final java.lang.String token
Constructor Detail

SimilarPlacesImpl

SimilarPlacesImpl(ResponseList<Place> places,
                  twitter4j.internal.http.HttpResponse res,
                  java.lang.String token)
Method Detail

getToken

public java.lang.String getToken()
Returns the token needed to be able to create a new place with GeoMethods.createPlace(String, String, String, GeoLocation, String).

Specified by:
getToken in interface SimilarPlaces
Returns:
token the token needed to be able to create a new place with GeoMethods.createPlace(String, String, String, GeoLocation, String)

createSimilarPlaces

static SimilarPlaces createSimilarPlaces(twitter4j.internal.http.HttpResponse res)
                                  throws TwitterException
Throws:
TwitterException