twitter4j
Class PagableResponseList<T extends TwitterResponse>

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

public final class PagableResponseList<T extends TwitterResponse>
extends ResponseList<T>
implements CursorSupport

ResponseList with cursor support.

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

Field Summary
private  long nextCursor
           
private  long previousCursor
           
private static long serialVersionUID
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PagableResponseList(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.ResponseList
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 java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

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

PagableResponseList

PagableResponseList(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

getPreviousCursor

public long getPreviousCursor()
Specified by:
getPreviousCursor in interface CursorSupport

hasNext

public boolean hasNext()
Specified by:
hasNext in interface CursorSupport

getNextCursor

public long getNextCursor()
Specified by:
getNextCursor in interface CursorSupport