T
- the list element typepublic class CursoredList<T> extends ArrayList<T>
modCount
Constructor and Description |
---|
CursoredList(Collection<? extends T> collection,
long previousCursor,
long nextCursor) |
CursoredList(int initialCapacity,
long previousCursor,
long nextCursor) |
Modifier and Type | Method and Description |
---|---|
long |
getNextCursor()
The cursor to retrieve the next page of results.
|
long |
getPreviousCursor()
The cursor to retrieve the previous page of results.
|
boolean |
hasNext()
Returns true if there is a next page of results.
|
boolean |
hasPrevious()
Returns true if there is a previous page of results.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public CursoredList(Collection<? extends T> collection, long previousCursor, long nextCursor)
public CursoredList(int initialCapacity, long previousCursor, long nextCursor)
public long getPreviousCursor()
public long getNextCursor()
public boolean hasPrevious()
public boolean hasNext()
Copyright © 2015. All rights reserved.