|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.functor.generator.BaseGenerator<E>
org.apache.commons.functor.generator.IteratorToGeneratorAdapter<E>
public final class IteratorToGeneratorAdapter<E>
Adapts an Iterator to the Generator interface.
| Constructor Summary | |
|---|---|
IteratorToGeneratorAdapter(Iterator<? extends E> iter)
Create a new IteratorToGeneratorAdapter. |
|
| Method Summary | ||
|---|---|---|
static
|
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()
|
|
| Methods inherited from class org.apache.commons.functor.generator.BaseGenerator |
|---|
getWrappedGenerator, isStopped, stop, to, to, toCollection |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IteratorToGeneratorAdapter(Iterator<? extends E> iter)
iter - Iterator to adapt| Method Detail |
|---|
public void run(UnaryProcedure<? super E> proc)
proc - UnaryProcedure to runpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic static <E> IteratorToGeneratorAdapter<E> adapt(Iterator<? extends E> iter)
iter - to adapt
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||