java.lang.Object each time the produce() method is invoked. This
behavior is similar to the java.util.Iterator , but is represented by one single produce() method as
opposed to java.util.Iterator 's two methods java.util.Iterator#hasNext() and java.util.Iterator#next() . This simplifies the implementation of certain complex iterations.
org.codehaus.commons.compiler.util.iterator.DirectoryIterator , org.codehaus.commons.compiler.util.iterator.ProducerIterator
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the next object ornull to indicate that no more objects can be producedProduces the next object. |
| produce | back to summary |
|---|---|
| public T produce() Produces the next object.
| |