Class ProducerIterator<T>
- java.lang.Object
-
- org.codehaus.commons.compiler.util.iterator.ProducerIterator<T>
-
- Type Parameters:
T
- The type of the products and the iterator elements
- All Implemented Interfaces:
java.util.Iterator<T>
- Direct Known Subclasses:
DirectoryIterator
public class ProducerIterator<T> extends java.lang.Object implements java.util.Iterator<T>
AnIterator
that iterates over all the objects produced by a delegateProducer
.- See Also:
Producer
-
-
Constructor Summary
Constructors Constructor Description ProducerIterator(Producer<T> producer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
remove()
-