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() |
long |
getPreviousCursor() |
boolean |
hasNext() |
boolean |
hasPrevious() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
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()