twitter4j
Class PagableResponseListImpl<T>

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
                  extended by twitter4j.PagableResponseListImpl<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, CursorSupport, PagableResponseList, ResponseList, TwitterResponse

 class PagableResponseListImpl<T>
extends ResponseListImpl
implements PagableResponseList

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

Field Summary
private  long nextCursor
           
private  long previousCursor
           
private static long serialVersionUID
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PagableResponseListImpl(int size, twitter4j.internal.org.json.JSONObject json, twitter4j.internal.http.HttpResponse res)
           
 
Method Summary
 long getNextCursor()
          
 long getPreviousCursor()
          
 boolean hasNext()
          
 boolean hasPrevious()
          
 
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

previousCursor

private final long previousCursor

nextCursor

private final long nextCursor

serialVersionUID

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

PagableResponseListImpl

PagableResponseListImpl(int size,
                        twitter4j.internal.org.json.JSONObject json,
                        twitter4j.internal.http.HttpResponse res)
Method Detail

hasPrevious

public boolean hasPrevious()

Specified by:
hasPrevious in interface CursorSupport
Specified by:
hasPrevious in interface PagableResponseList

getPreviousCursor

public long getPreviousCursor()

Specified by:
getPreviousCursor in interface CursorSupport
Specified by:
getPreviousCursor in interface PagableResponseList

hasNext

public boolean hasNext()

Specified by:
hasNext in interface CursorSupport
Specified by:
hasNext in interface PagableResponseList

getNextCursor

public long getNextCursor()

Specified by:
getNextCursor in interface CursorSupport
Specified by:
getNextCursor in interface PagableResponseList