|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Generator | |
---|---|
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 |
---|
Methods in org.apache.commons.functor.core.algorithm with parameters of type Generator | |
---|---|
E |
FindWithinGenerator.evaluate(Generator<? extends E> left,
UnaryPredicate<? super E> right)
Evaluate this function. |
Number |
IndexOfInGenerator.evaluate(Generator<? extends T> left,
UnaryPredicate<? super T> right)
Evaluate this function. |
T |
FoldRight.evaluate(Generator<T> obj)
Evaluate this function. |
T |
FoldLeft.evaluate(Generator<T> obj)
Evaluate this function. |
T |
FoldRight.evaluate(Generator<T> left,
T right)
Evaluate this function. |
T |
FoldLeft.evaluate(Generator<T> left,
T right)
Evaluate this function. |
boolean |
GeneratorContains.test(Generator<? extends T> left,
UnaryPredicate<? super T> right)
Evaluate this predicate. |
Uses of Generator in org.apache.commons.functor.generator |
---|
Classes in org.apache.commons.functor.generator that implement Generator | |
---|---|
class |
BaseGenerator<E>
Base class for generators. |
class |
FilteredGenerator<E>
Generator that filters another Generator by only passing through those elements that are matched by a specified UnaryPredicate. |
class |
GenerateUntil<E>
Wrap another Generator such that GenerateUntil.run(UnaryProcedure) terminates once
a condition has been satisfied (test after). |
class |
GenerateWhile<E>
Wrap another Generator such that GenerateWhile.run(UnaryProcedure) continues
as long as a condition is true (test after). |
class |
IteratorToGeneratorAdapter<E>
Adapts an Iterator to the Generator interface. |
class |
TransformedGenerator<I,E>
Generator that transforms the elements of another Generator. |
class |
UntilGenerate<E>
Wrap another Generator such that UntilGenerate.run(UnaryProcedure) terminates once
a condition has been satisfied. |
class |
WhileGenerate<E>
Wrap another Generator such that WhileGenerate.run(UnaryProcedure) continues
as long as a condition is true (test before). |
Methods in org.apache.commons.functor.generator that return Generator | |
---|---|
protected Generator<? extends E> |
WhileGenerate.getWrappedGenerator()
Get the generator that is being wrapped. |
protected Generator<? extends E> |
UntilGenerate.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> |
GenerateWhile.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> |
FilteredGenerator.getWrappedGenerator()
Get the generator that is being wrapped. |
protected Generator<?> |
BaseGenerator.getWrappedGenerator()
Get the generator that is being wrapped. |
Method parameters in org.apache.commons.functor.generator with type arguments of type Generator | ||
---|---|---|
|
BaseGenerator.to(UnaryFunction<Generator<? extends E>,? extends T> transformer)
Transforms this generator using the passed in transformer. |
|
|
Generator.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 | |
---|---|
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 | |
---|---|
class |
IntegerRange
A generator for the range from (inclusive) to to (exclusive). |
class |
LongRange
A generator for the range from (inclusive) to to (exclusive). |
Methods in org.apache.commons.functor.generator.util that return Generator | ||
---|---|---|
static
|
EachElement.from(Collection<? extends E> collection)
Get a Generator for each element of a Collection. |
|
static
|
EachElement.from(E[] array)
Get a Generator for each element of an Object[]. |
|
static
|
EachElement.from(Iterator<? extends E> iter)
Get a Generator for each element of an Iterator. |
|
static
|
EachElement.from(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 | |
---|---|
Collection<E> |
CollectionTransformer.evaluate(Generator<? extends E> generator)
Evaluate this function. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |