|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Function | |
---|---|
org.apache.commons.functor.adapter | Classes that adapt one functor interface to another. |
org.apache.commons.functor.core | Commonly used functor implementations. |
org.apache.commons.functor.core.algorithm | Various algorithm-esque functors. |
org.apache.commons.functor.core.composite | Functors composed of other functors. |
Uses of Function in org.apache.commons.functor.adapter |
---|
Classes in org.apache.commons.functor.adapter that implement Function | |
---|---|
class |
BoundFunction<T>
Adapts a UnaryFunction
to the
Function interface
using a constant unary argument. |
class |
FullyBoundFunction<T>
Adapts a BinaryFunction
to the
Function interface
using constant arguments. |
class |
PredicateFunction
Adapts a Predicate
to the
Function interface. |
class |
ProcedureFunction<T>
Adapts a Procedure
to the
Function interface
by always returning null . |
Methods in org.apache.commons.functor.adapter with parameters of type Function | ||
---|---|---|
static FunctionProcedure |
FunctionProcedure.adapt(Function<?> function)
Adapt the given, possibly- null ,
Function to the
Procedure interface. |
|
static
|
FunctionUnaryFunction.adapt(Function<? extends T> function)
Adapt a Function to the UnaryFunction interface. |
|
static FunctionPredicate |
FunctionPredicate.adapt(Function<Boolean> function)
Adapt a Function as a Predicate. |
Constructors in org.apache.commons.functor.adapter with parameters of type Function | |
---|---|
FunctionPredicate(Function<Boolean> function)
Create a new FunctionPredicate. |
|
FunctionProcedure(Function<?> function)
Create an Procedure wrapping
the given Function . |
|
FunctionUnaryFunction(Function<? extends T> function)
Create a new FunctionUnaryFunction. |
Uses of Function in org.apache.commons.functor.core |
---|
Classes in org.apache.commons.functor.core that implement Function | |
---|---|
class |
Constant<T>
Evaluates to constant value. |
Uses of Function in org.apache.commons.functor.core.algorithm |
---|
Classes in org.apache.commons.functor.core.algorithm that implement Function | |
---|---|
class |
RecursiveEvaluation
Tail recursion for functions . |
Constructors in org.apache.commons.functor.core.algorithm with parameters of type Function | |
---|---|
RecursiveEvaluation(Function<?> function)
Create a new RecursiveEvaluation. |
|
RecursiveEvaluation(Function<?> function,
Class<?> functionType)
Create a new RecursiveEvaluation. |
Uses of Function in org.apache.commons.functor.core.composite |
---|
Classes in org.apache.commons.functor.core.composite that implement Function | |
---|---|
class |
ConditionalFunction<T>
A Function
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
TransformedFunction<T>
A Function whose result is then run through a UnaryFunction. |
Methods in org.apache.commons.functor.core.composite that return Function | ||
---|---|---|
static
|
Conditional.function(Predicate q,
Function<? extends T> r,
Function<? extends T> s)
Create a conditional Function. |
Methods in org.apache.commons.functor.core.composite with parameters of type Function | ||
---|---|---|
static
|
Conditional.function(Predicate q,
Function<? extends T> r,
Function<? extends T> s)
Create a conditional Function. |
|
static
|
Conditional.function(Predicate q,
Function<? extends T> r,
Function<? extends T> s)
Create a conditional Function. |
Constructors in org.apache.commons.functor.core.composite with parameters of type Function | |
---|---|
ConditionalFunction(Predicate ifPred,
Function<? extends T> thenFunc,
Function<? extends T> elseFunc)
Create a new ConditionalFunction. |
|
ConditionalFunction(Predicate ifPred,
Function<? extends T> thenFunc,
Function<? extends T> elseFunc)
Create a new ConditionalFunction. |
|
TransformedFunction(Function<? extends X> preceding,
UnaryFunction<? super X,? extends T> following)
Create a new TransformedFunction. |
|
TransformedProcedure(Function<? extends X> function,
UnaryProcedure<? super X> procedure)
Create a new TransformedProcedure. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |