Uses of Interface
org.apache.commons.functor.generator.Generator
-
Packages that use Generator Package Description org.apache.commons.functor.core.algorithm Various algorithm-esque functors.org.apache.commons.functor.generator Contains code related to Generators.org.apache.commons.functor.generator.util Contains utility code for Generators. -
-
Uses of Generator in org.apache.commons.functor.core.algorithm
Fields in org.apache.commons.functor.core.algorithm declared as Generator Modifier and Type Field Description private Generator<? extends T>IndexOfInGenerator.IndexProcedure. generatorThe wrapped generator.Methods in org.apache.commons.functor.core.algorithm with parameters of type Generator Modifier and Type Method Description EFindWithinGenerator. evaluate(Generator<? extends E> left, UnaryPredicate<? super E> right)Evaluate this function.TFoldLeft. evaluate(Generator<T> obj)Evaluate this function.TFoldLeft. evaluate(Generator<T> left, T right)Evaluate this function.TFoldRight. evaluate(Generator<T> obj)Evaluate this function.TFoldRight. evaluate(Generator<T> left, T right)Evaluate this function.java.lang.NumberIndexOfInGenerator. evaluate(Generator<? extends T> left, UnaryPredicate<? super T> right)Evaluate this function.booleanGeneratorContains. test(Generator<? extends T> left, UnaryPredicate<? super T> right)Evaluate this predicate.Constructors in org.apache.commons.functor.core.algorithm with parameters of type Generator Constructor Description IndexProcedure(Generator<? extends T> generator, UnaryPredicate<? super T> pred)Create a new IndexProcedure. -
Uses of Generator in org.apache.commons.functor.generator
Classes in org.apache.commons.functor.generator that implement Generator Modifier and Type Class Description classBaseGenerator<E>Base class for generators.classFilteredGenerator<E>Generator that filters another Generator by only passing through those elements that are matched by a specified UnaryPredicate.classGenerateUntil<E>Wrap anotherGeneratorsuch thatGenerateUntil.run(UnaryProcedure)terminates once a condition has been satisfied (test after).classGenerateWhile<E>Wrap anotherGeneratorsuch thatGenerateWhile.run(UnaryProcedure)continues as long as a condition is true (test after).classIteratorToGeneratorAdapter<E>Adapts anIteratorto theGeneratorinterface.classTransformedGenerator<I,E>Generator that transforms the elements of another Generator.classUntilGenerate<E>Wrap anotherGeneratorsuch thatUntilGenerate.run(UnaryProcedure)terminates once a condition has been satisfied.classWhileGenerate<E>Wrap anotherGeneratorsuch thatWhileGenerate.run(UnaryProcedure)continues as long as a condition is true (test before).Fields in org.apache.commons.functor.generator declared as Generator Modifier and Type Field Description private Generator<?>BaseGenerator. wrappedGeneratorA generator can wrap another generator.Methods in org.apache.commons.functor.generator that return Generator Modifier and Type Method Description protected Generator<?>BaseGenerator. getWrappedGenerator()Get the generator that is being wrapped.protected Generator<? extends E>FilteredGenerator. getWrappedGenerator()Get the generator that is being wrapped.protected Generator<? extends E>GenerateUntil. getWrappedGenerator()Get the generator that is being wrapped.protected Generator<? extends E>GenerateWhile. getWrappedGenerator()Get the generator that is being wrapped.protected Generator<? extends I>TransformedGenerator. getWrappedGenerator()Get the generator that is being wrapped.protected Generator<? extends E>UntilGenerate. getWrappedGenerator()Get the generator that is being wrapped.protected Generator<? extends E>WhileGenerate. getWrappedGenerator()Get the generator that is being wrapped.Method parameters in org.apache.commons.functor.generator with type arguments of type Generator Modifier and Type Method Description <T> TBaseGenerator. to(UnaryFunction<Generator<? extends E>,? extends T> transformer)Transforms this generator using the passed in transformer.<Z> ZGenerator. to(UnaryFunction<Generator<? extends E>,? extends Z> transformer)Transforms this generator using the passed in transformer.Constructors in org.apache.commons.functor.generator with parameters of type Generator Constructor Description BaseGenerator(Generator<?> generator)A generator can wrap another generator.FilteredGenerator(Generator<? extends E> wrapped, UnaryPredicate<? super E> pred)Create a new FilteredGenerator.GenerateUntil(Generator<? extends E> wrapped, UnaryPredicate<? super E> test)Create a new GenerateUntil.GenerateWhile(Generator<? extends E> wrapped, UnaryPredicate<? super E> test)Create a new GenerateWhile.TransformedGenerator(Generator<? extends I> wrapped, UnaryFunction<? super I,? extends E> func)Create a new TransformedGenerator.UntilGenerate(UnaryPredicate<? super E> test, Generator<? extends E> wrapped)Create a new UntilGenerate.WhileGenerate(UnaryPredicate<? super E> test, Generator<? extends E> wrapped)Create a new WhileGenerate. -
Uses of Generator in org.apache.commons.functor.generator.util
Classes in org.apache.commons.functor.generator.util that implement Generator Modifier and Type Class Description classIntegerRangeA generator for the range from (inclusive) to to (exclusive).classLongRangeA generator for the range from (inclusive) to to (exclusive).Methods in org.apache.commons.functor.generator.util that return Generator Modifier and Type Method Description static <E> Generator<E>EachElement. from(E[] array)Get a Generator for each element of an Object[].static <E> Generator<E>EachElement. from(java.util.Collection<? extends E> collection)Get a Generator for each element of a Collection.static <E> Generator<E>EachElement. from(java.util.Iterator<? extends E> iter)Get a Generator for each element of an Iterator.static <K,V>
Generator<java.util.Map.Entry<K,V>>EachElement. from(java.util.Map<? extends K,? extends V> map)Get a Generator for each entry of a Map.Methods in org.apache.commons.functor.generator.util with parameters of type Generator Modifier and Type Method Description java.util.Collection<E>CollectionTransformer. evaluate(Generator<? extends E> generator)Evaluate this function.
-