private class PaginatedList.PaginatedListIterator
extends java.lang.Object
implements java.util.Iterator<T>
Modifier and Type | Field and Description |
---|---|
private java.util.List<T> |
allResultsCopy
A hard copy of the allResults list to prevent
ConcurrentModificationExceptions.
|
private java.util.Iterator<T> |
innerIterator |
private boolean |
iterationOnly
Whether this iterator is constructed by a PaginatedList in
ITERATION_ONLY mode.
|
private int |
pos |
Constructor and Description |
---|
PaginatedListIterator(boolean iterationOnly) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
private boolean |
shouldSyncWithAllResultsList()
If we aren't in ITERATION_ONLY mode then allResults is the authoriative source of
results.
|
private final boolean iterationOnly
private final java.util.List<T> allResultsCopy
private java.util.Iterator<T> innerIterator
private int pos
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
private boolean shouldSyncWithAllResultsList()
public void remove()
remove
in interface java.util.Iterator<T>