Uses of Interface
org.apache.commons.functor.generator.Generator
Packages that use Generator
Package
Description
Various algorithm-esque functors.
Contains code related to Generators.
Contains utility code for Generators.
-
Uses of Generator in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement interfaces with type arguments of type GeneratorModifier and TypeClassDescriptionfinal classReturn the first Object in aGeneratormatching aUnaryPredicate.classFoldLeft<T>Functional left-fold algorithm against the elements of aGenerator.classFoldLeft<T>Functional left-fold algorithm against the elements of aGenerator.classFoldRight<T>Functional right-fold algorithm against the elements of aGenerator.classFoldRight<T>Functional right-fold algorithm against the elements of aGenerator.final classTests whether aGeneratorcontains an element that matches aUnaryPredicate.final classReturn the index of the first Object in aGeneratormatching aUnaryPredicate, or -1 if not found.Fields in org.apache.commons.functor.core.algorithm declared as GeneratorModifier and TypeFieldDescriptionIndexOfInGenerator.IndexProcedure.generatorThe wrapped generator.Methods in org.apache.commons.functor.core.algorithm with parameters of type GeneratorModifier and TypeMethodDescriptionFindWithinGenerator.evaluate(Generator<? extends E> left, UnaryPredicate<? super E> right) Evaluate this function.final TEvaluate this function.final TEvaluate this function.final TEvaluate this function.final TEvaluate this function.IndexOfInGenerator.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 GeneratorModifierConstructorDescription(package private)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 GeneratorModifier and TypeClassDescriptionclassBase class for generators.classGenerator that filters another Generator by only passing through those elements that are matched by a specified UnaryPredicate.classWrap anotherGeneratorsuch thatGenerateUntil.run(UnaryProcedure)terminates once a condition has been satisfied (test after).classWrap anotherGeneratorsuch thatGenerateWhile.run(UnaryProcedure)continues as long as a condition is true (test after).final classclassTransformedGenerator<I,E> Generator that transforms the elements of another Generator.classWrap anotherGeneratorsuch thatUntilGenerate.run(UnaryProcedure)terminates once a condition has been satisfied.classWrap anotherGeneratorsuch thatWhileGenerate.run(UnaryProcedure)continues as long as a condition is true (test before).Fields in org.apache.commons.functor.generator declared as GeneratorModifier and TypeFieldDescriptionprivate final Generator<?> BaseGenerator.wrappedGeneratorA generator can wrap another generator.Methods in org.apache.commons.functor.generator that return GeneratorModifier and TypeMethodDescriptionprotected Generator<?> BaseGenerator.getWrappedGenerator()Get the generator that is being wrapped.FilteredGenerator.getWrappedGenerator()Get the generator that is being wrapped.GenerateUntil.getWrappedGenerator()Get the generator that is being wrapped.GenerateWhile.getWrappedGenerator()Get the generator that is being wrapped.TransformedGenerator.getWrappedGenerator()Get the generator that is being wrapped.UntilGenerate.getWrappedGenerator()Get the generator that is being wrapped.WhileGenerate.getWrappedGenerator()Get the generator that is being wrapped.Method parameters in org.apache.commons.functor.generator with type arguments of type GeneratorModifier and TypeMethodDescriptionfinal <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 GeneratorModifierConstructorDescriptionBaseGenerator(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 GeneratorModifier and TypeClassDescriptionfinal classA generator for the range from (inclusive) to to (exclusive).final classA generator for the range from (inclusive) to to (exclusive).Classes in org.apache.commons.functor.generator.util that implement interfaces with type arguments of type GeneratorModifier and TypeClassDescriptionclassTransforms a generator into a collection.Methods in org.apache.commons.functor.generator.util that return GeneratorModifier and TypeMethodDescriptionstatic <E> Generator<E> EachElement.from(E[] array) Get a Generator for each element of an Object[].static <E> Generator<E> EachElement.from(Collection<? extends E> collection) Get a Generator for each element of a Collection.static <E> Generator<E> Get a Generator for each element of an Iterator.Get a Generator for each entry of a Map.Methods in org.apache.commons.functor.generator.util with parameters of type GeneratorModifier and TypeMethodDescriptionEvaluate this function.