Package com.identity4j.util
Class AbstractLazyLoadingIterator<T>
- java.lang.Object
-
- com.identity4j.util.AbstractLazyLoadingIterator<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Iterator<T>
public abstract class AbstractLazyLoadingIterator<T> extends Object implements Iterator<T>
Implementation anIteratorwhich uses the lazy loading pattern to retrieve one batch of results at a time.
-
-
Constructor Summary
Constructors Constructor Description AbstractLazyLoadingIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Iterator<T>fetchNext()booleanhasNext()Tnext()protected voidonNext(T next)voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
onNext
protected void onNext(T next)
-
-