Package org.apache.commons.functor.core.composite
package org.apache.commons.functor.core.composite
Functors composed of other functors.
-
ClassesClassDescriptionAbstract base class for
WhileDoProcedureandDoWhileProcedureused to implement loop procedures.Abstract base class forBinaryPredicatescomposed of a list ofBinaryPredicates.Abstract base class forPredicatescomposed of a list ofPredicates.Abstract base class forUnaryPredicatescomposed of a list ofUnaryPredicates.BinaryAnd<L,R> ABinaryFunctioncomposed of three binary functions, f, g and h, evaluating the ordered parameters x, y tof(g(x,y),h(x,y)).BinaryCompositeBinaryFunction.Helper<G,H, L, R, T> Type-remembering Helper.BinaryNot<L,R> Teststo the logical inverse of some other predicate.BinaryOr<L,R> BinarySequence<L,R> Utility/fluent methods for creating composite functors.AUnaryFunctionrepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.Encapsulates a double function evaluation.AUnaryPredicaterepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.AUnaryProcedurerepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.Utility methods for creating conditional functors.ConditionalBinaryFunction<L,R, T> ABinaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).ABinaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).ABinaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).AFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).APredicatesimiliar to Java's "ternary" or "conditional" operator (? :).AProceduresimiliar to Java's "ternary" or "conditional" operator (? :).AUnaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).AUnaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).AUnaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).AProcedureimplementation of a while loop.Teststo the logical inverse of some other predicate.TransformedBinaryFunction<L,R, T> A BinaryFunction whose result is then run through a UnaryFunction.TransformedBinaryFunction.Helper<X,L, R, T> Type-remembering helper.A BinaryProcedure composed of a BinaryFunction whose result is then run through a UnaryProcedure.Type-remembering helper.A Function whose result is then run through a UnaryFunction.Type-remembering helper.A Procedure composed of a Function whose result is then run through a UnaryProcedure.Type-remembering helper.TransposedFunction<L,R, T> Transposes (swaps) the arguments to some otherfunction.TransposedPredicate<L,R> Transposes (swaps) the arguments to some otherpredicate.TransposedProcedure<L,R> Transposes (swaps) the arguments to some otherprocedure.UnaryAnd<A>UnaryCompositeBinaryFunction<L,R, T> ABinaryFunctioncomposed of one binary function, f, and two unary functions, g and h, evaluating the ordered parameters x, y tof(g(x),h(y)).UnaryCompositeBinaryFunction.Helper<G,H, L, R, T> ABinaryPredicatecomposed of one binary predicate, p, and two unary functions, f and g, evaluating the ordered parameters x, y top(f(x),g(y)).UnaryCompositeBinaryPredicate.Helper<G,H, L, R> Internal helper.UnaryNot<A>Teststo the logical inverse of some other predicate.UnaryOr<A>AProcedureimplementation of a while loop.