org.codehaus.janino.util
Interface Producer
public
interface
Producer
An object that produces some 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.
See Also: DirectoryIterator ProducerIterator
public Object produce()
Produce the next object.
Returns: the next object or null
to indicate that no more objects can be produced