Package org.codehaus.janino.util
Interface Producer
-
public interface ProducerAn object that produces someObjecteach time theproduce()method is invoked. This behavior is similar to theIterator, but is represented by one singleproduce()method as opposed toIterator's two methodsIterator.hasNext()andIterator.next(). This simplifies the implementation of certain complex iterations.- See Also:
DirectoryIterator,ProducerIterator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectproduce()Produce the next object.
-