E - the type of elements held in this generator.public final class IteratorToGeneratorAdapter<E> extends BaseGenerator<E>
| Constructor and Description |
|---|
IteratorToGeneratorAdapter(Iterator<? extends E> iter)
Create a new IteratorToGeneratorAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> IteratorToGeneratorAdapter<E> |
adapt(Iterator<? extends E> iter)
Adapt an Iterator to the Generator interface.
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
run(UnaryProcedure<? super E> proc)
Generators must implement this method.
|
String |
toString() |
getWrappedGenerator, isStopped, stop, to, to, toCollectionpublic IteratorToGeneratorAdapter(Iterator<? extends E> iter)
iter - Iterator to adaptpublic void run(UnaryProcedure<? super E> proc)
proc - UnaryProcedure to runpublic static <E> IteratorToGeneratorAdapter<E> adapt(Iterator<? extends E> iter)
E - the type of elements held in this generator.iter - to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.