Package org.codehaus.janino.util
Interface Producer
public interface Producer
An object that produces some
Object each time the
produce() method is invoked. This behavior is similar to the
Iterator, but is represented by one single
produce() method as opposed to Iterator's
two methods Iterator.hasNext() and
Iterator.next(). This simplifies the implementation of
certain complex iterations.- See Also:
-
Method Summary
-
Method Details
-
produce
Object produce()Produce the next object.- Returns:
- the next object or
nullto indicate that no more objects can be produced
-