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, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic 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 © 2016. All rights reserved.