Package org.apache.commons.functor.generator
Contains code related to Generators.
-
Interface Summary Interface Description Generator<E> The Generator interface defines a number of useful actions applying UnaryFunctors to each in a series of argument Objects. -
Class Summary Class Description BaseGenerator<E> Base class for generators.FilteredGenerator<E> Generator that filters another Generator by only passing through those elements that are matched by a specified UnaryPredicate.GenerateUntil<E> Wrap anotherGeneratorsuch thatGenerateUntil.run(UnaryProcedure)terminates once a condition has been satisfied (test after).GenerateWhile<E> Wrap anotherGeneratorsuch thatGenerateWhile.run(UnaryProcedure)continues as long as a condition is true (test after).IteratorToGeneratorAdapter<E> Adapts anIteratorto theGeneratorinterface.TransformedGenerator<I,E> Generator that transforms the elements of another Generator.UntilGenerate<E> Wrap anotherGeneratorsuch thatUntilGenerate.run(UnaryProcedure)terminates once a condition has been satisfied.WhileGenerate<E> Wrap anotherGeneratorsuch thatWhileGenerate.run(UnaryProcedure)continues as long as a condition is true (test before).