Uses of Interface
org.apache.commons.functor.Function
-
Packages that use Function Package Description 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 Modifier and Type Class Description classBoundFunction<T>Adapts aUnaryFunctionto theFunctioninterface using a constant unary argument.classFullyBoundFunction<T>Adapts aBinaryFunctionto theFunctioninterface using constant arguments.classPredicateFunctionclassProcedureFunction<T>Fields in org.apache.commons.functor.adapter declared as Function Modifier and Type Field Description private Function<java.lang.Boolean>FunctionPredicate. functionTheFunctionI'm wrapping.private Function<?>FunctionProcedure. functionTheFunctionI'm wrapping.private Function<? extends T>FunctionUnaryFunction. functionTheFunctionI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type Function Modifier and Type Method Description static FunctionPredicateFunctionPredicate. adapt(Function<java.lang.Boolean> function)Adapt a Function as a Predicate.static FunctionProcedureFunctionProcedure. adapt(Function<?> function)static <A,T>
FunctionUnaryFunction<A,T>FunctionUnaryFunction. adapt(Function<? extends T> function)Adapt a Function to the UnaryFunction interface.Constructors in org.apache.commons.functor.adapter with parameters of type Function Constructor Description FunctionPredicate(Function<java.lang.Boolean> function)Create a new FunctionPredicate.FunctionProcedure(Function<?> 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 Modifier and Type Class Description classConstant<T>Evaluatesto constant value. -
Uses of Function in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement Function Modifier and Type Class Description classRecursiveEvaluationTail recursion forfunctions.Fields in org.apache.commons.functor.core.algorithm declared as Function Modifier and Type Field Description private Function<?>RecursiveEvaluation. functionThe initial, potentially recursive Function.Methods in org.apache.commons.functor.core.algorithm with parameters of type Function Modifier and Type Method Description private static java.lang.Class<?>RecursiveEvaluation. getClass(Function<?> f)Get the class of the specified object, ornullifoisnull.Constructors in org.apache.commons.functor.core.algorithm with parameters of type Function Constructor Description RecursiveEvaluation(Function<?> function)Create a new RecursiveEvaluation.RecursiveEvaluation(Function<?> function, java.lang.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 Modifier and Type Class Description classConditionalFunction<T>AFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).classTransformedFunction<T>A Function whose result is then run through a UnaryFunction.private static classTransformedFunction.Helper<X,T>Type-remembering helper.Fields in org.apache.commons.functor.core.composite declared as Function Modifier and Type Field Description private Function<? extends T>ConditionalFunction. elseFuncthe function executed if the condition is not satisfied.private Function<? extends X>TransformedProcedure.Helper. functionThe adapted function.private Function<? extends X>TransformedFunction.Helper. precedingThe preceding function.private Function<? extends T>ConditionalFunction. thenFuncthe function executed if the condition is satisfied.Methods in org.apache.commons.functor.core.composite that return Function Modifier and Type Method Description static <T> Function<T>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 Modifier and Type Method Description static <T> Function<T>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 Constructor Description ConditionalFunction(Predicate ifPred, Function<? extends T> thenFunc, Function<? extends T> elseFunc)Create a new ConditionalFunction.Helper(Function<? extends X> preceding, UnaryFunction<? super X,? extends T> following)Create a new Helper.Helper(Function<? extends X> function, UnaryProcedure<? super X> procedure)Create a new Helper.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.
-