Class IteratorToGeneratorAdapter<E>
java.lang.Object
org.apache.commons.functor.generator.BaseGenerator<E>
org.apache.commons.functor.generator.IteratorToGeneratorAdapter<E>
- Type Parameters:
E- the type of elements held in this generator.
- All Implemented Interfaces:
Generator<E>
- Since:
- 1.0
- Version:
- $Revision$ $Date$
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIteratorToGeneratorAdapter(Iterator<? extends E> iter) Create a new IteratorToGeneratorAdapter. -
Method Summary
Methods inherited from class BaseGenerator
getWrappedGenerator, isStopped, stop, to, to, toCollection
-
Field Details
-
iter
-
-
Constructor Details
-
IteratorToGeneratorAdapter
-
-
Method Details
-
run
Generators must implement this method.- Parameters:
proc- UnaryProcedure to run
-
equals
-
hashCode
-
toString
-
adapt
Adapt an Iterator to the Generator interface.- Type Parameters:
E- the type of elements held in this generator.- Parameters:
iter- to adapt- Returns:
- IteratorToGeneratorAdapter
-