Package org.apache.commons.functor.core.composite
Functors composed of other functors.
-
Class Summary Class Description AbstractLoopProcedure Abstract base class forWhileDoProcedureandDoWhileProcedureused to implement loop procedures.And BaseBinaryPredicateList<L,R> Abstract base class forBinaryPredicatescomposed of a list ofBinaryPredicates.BasePredicateList Abstract base class forPredicatescomposed of a list ofPredicates.BaseUnaryPredicateList<A> Abstract base class forUnaryPredicatescomposed of a list ofUnaryPredicates.BinaryAnd<L,R> BinaryCompositeBinaryFunction<L,R,T> 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> Composite Utility/fluent methods for creating composite functors.CompositeUnaryFunction<A,T> AUnaryFunctionrepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.CompositeUnaryFunction.Helper<X,A,T> Encapsulates a double function evaluation.CompositeUnaryPredicate<A> AUnaryPredicaterepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.CompositeUnaryProcedure<A> AUnaryProcedurerepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.Conditional Utility methods for creating conditional functors.ConditionalBinaryFunction<L,R,T> ABinaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).ConditionalBinaryPredicate<L,R> ABinaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).ConditionalBinaryProcedure<L,R> ABinaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).ConditionalFunction<T> AFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).ConditionalPredicate APredicatesimiliar to Java's "ternary" or "conditional" operator (? :).ConditionalProcedure AProceduresimiliar to Java's "ternary" or "conditional" operator (? :).ConditionalUnaryFunction<A,T> AUnaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).ConditionalUnaryPredicate<A> AUnaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).ConditionalUnaryProcedure<A> AUnaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).DoWhileProcedure AProcedureimplementation of a while loop.Not Teststo the logical inverse of some other predicate.Or Sequence TransformedBinaryFunction<L,R,T> A BinaryFunction whose result is then run through a UnaryFunction.TransformedBinaryFunction.Helper<X,L,R,T> Type-remembering helper.TransformedBinaryProcedure<L,R> A BinaryProcedure composed of a BinaryFunction whose result is then run through a UnaryProcedure.TransformedBinaryProcedure.Helper<X,L,R> Type-remembering helper.TransformedFunction<T> A Function whose result is then run through a UnaryFunction.TransformedFunction.Helper<X,T> Type-remembering helper.TransformedProcedure A Procedure composed of a Function whose result is then run through a UnaryProcedure.TransformedProcedure.Helper<X> 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> UnaryCompositeBinaryPredicate<L,R> 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> UnarySequence<A> WhileDoProcedure AProcedureimplementation of a while loop.