T - C - public class CachingIterator<T> extends Object implements Iterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected Cache<T> |
cache |
protected Iterator<T> |
delegate |
protected int |
offset |
| Constructor and Description |
|---|
CachingIterator(Cache<T> cache,
Iterator<T> delegate) |
CachingIterator(Cache<T> cache,
Iterator<T> delegate,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
The cache's isComplete flag is only set if a call to hasNext returns false.
|
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeCopyright © 2018. All rights reserved.