public class LazyIterable<T>
extends java.lang.Object
implements java.lang.Iterable<T>
LazyIterable.LazyLoaderFactory
which is used to fetch data as it is needed.Modifier and Type | Class and Description |
---|---|
static interface |
LazyIterable.LazyLoader<T>
A loader is responsible for returning new data on each call to
LazyIterable.LazyLoader.getNextValues() . |
static interface |
LazyIterable.LazyLoaderFactory<T>
A factory that creates instances of LazyLoaders.
|
Constructor and Description |
---|
LazyIterable(LazyIterable.LazyLoaderFactory<T> lazyLoaderFactory) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<T> |
iterator() |
public LazyIterable(LazyIterable.LazyLoaderFactory<T> lazyLoaderFactory)