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