Uses of Interface
org.apache.commons.functor.BinaryFunction
-
Packages that use BinaryFunction 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.comparator Comparator- andComparable-based functors, algorithms and utilities.org.apache.commons.functor.core.composite Functors composed of other functors. -
-
Uses of BinaryFunction in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement BinaryFunction Modifier and Type Class Description classBinaryPredicateBinaryFunction<L,R>Adapts aBinaryPredicateto theBinaryFunctioninterface.classBinaryProcedureBinaryFunction<L,R,T>classIgnoreLeftFunction<L,R,T>Adapts aUnaryFunctionto theBinaryFunctioninterface by ignoring the first binary argument.classIgnoreRightFunction<L,R,T>Adapts aUnaryFunctionto theBinaryFunctioninterface by ignoring the second binary argument.Fields in org.apache.commons.functor.adapter declared as BinaryFunction Modifier and Type Field Description private BinaryFunction<? super L,? super R,java.lang.Boolean>BinaryFunctionBinaryPredicate. functionTheBinaryFunctionI'm wrapping.private BinaryFunction<? super L,? super R,?>BinaryFunctionBinaryProcedure. functionTheBinaryFunctionI'm wrapping.private BinaryFunction<? super A,? super A,? extends T>BinaryFunctionUnaryFunction. functionThe adapted function.private BinaryFunction<java.lang.Object,java.lang.Object,? extends T>FullyBoundFunction. functionTheBinaryFunctionI'm wrapping.private BinaryFunction<java.lang.Object,? super A,? extends T>LeftBoundFunction. functionTheBinaryFunctionI'm wrapping.private BinaryFunction<? super A,java.lang.Object,? extends T>RightBoundFunction. functionTheBinaryFunctionI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type BinaryFunction Modifier and Type Method Description static <L,R,T>
BinaryFunctionBinaryPredicate<L,R>BinaryFunctionBinaryPredicate. adapt(BinaryFunction<? super L,? super R,java.lang.Boolean> function)static <L,R>
BinaryFunctionBinaryProcedure<L,R>BinaryFunctionBinaryProcedure. adapt(BinaryFunction<? super L,? super R,?> function)static <A,T>
UnaryFunction<A,T>BinaryFunctionUnaryFunction. adapt(BinaryFunction<? super A,? super A,? extends T> function)Adapt a BinaryFunction as a UnaryFunction.static <L,R,T>
FullyBoundFunction<T>FullyBoundFunction. bind(BinaryFunction<? super L,? super R,? extends T> function, L left, R right)Adapt a BinaryFunction as a Function.static <L,R,T>
LeftBoundFunction<R,T>LeftBoundFunction. bind(BinaryFunction<? super L,? super R,? extends T> function, L arg)Adapt a BinaryFunction as a UnaryFunction.static <L,R,T>
RightBoundFunction<L,T>RightBoundFunction. bind(BinaryFunction<? super L,? super R,? extends T> function, R arg)Adapt a BinaryFunction to the UnaryFunction interface.Constructors in org.apache.commons.functor.adapter with parameters of type BinaryFunction Constructor Description BinaryFunctionBinaryPredicate(BinaryFunction<? super L,? super R,java.lang.Boolean> function)Create anBinaryPredicatewrapping the givenBinaryFunction.BinaryFunctionBinaryProcedure(BinaryFunction<? super L,? super R,?> function)Create anBinaryProcedurewrapping the givenBinaryFunction.BinaryFunctionUnaryFunction(BinaryFunction<? super A,? super A,? extends T> function)Create a new BinaryFunctionUnaryFunction.FullyBoundFunction(BinaryFunction<? super L,? super R,? extends T> function, L left, R right)Create a new FullyBoundFunction.LeftBoundFunction(BinaryFunction<? super L,? super A,? extends T> function, L arg)Create a new LeftBoundFunction instance.RightBoundFunction(BinaryFunction<? super A,? super R,? extends T> function, R arg) -
Uses of BinaryFunction in org.apache.commons.functor.core
Classes in org.apache.commons.functor.core that implement BinaryFunction Modifier and Type Class Description classConstant<T>Evaluatesto constant value.Fields in org.apache.commons.functor.core declared as BinaryFunction Modifier and Type Field Description static BinaryFunction<java.lang.Object,java.lang.Object,java.lang.Object>LeftIdentity. FUNCTIONLeft-identity function.static BinaryFunction<java.lang.Object,java.lang.Object,java.lang.Object>RightIdentity. FUNCTIONRight-identity function.Methods in org.apache.commons.functor.core that return BinaryFunction Modifier and Type Method Description static <L,R>
BinaryFunction<L,R,L>LeftIdentity. function()Get a Left-identity BinaryFunction.static <L,R>
BinaryFunction<L,R,R>RightIdentity. function()Get a typed right-identity BinaryFunction. -
Uses of BinaryFunction in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement BinaryFunction Modifier and Type Class Description classFindWithinGenerator<E>Return the first Object in aGeneratormatching aUnaryPredicate.classFoldLeft<T>Functional left-fold algorithm against the elements of aGenerator.classFoldRight<T>Functional right-fold algorithm against the elements of aGenerator.classIndexOfInGenerator<T>Return the index of the first Object in aGeneratormatching aUnaryPredicate, or -1 if not found.Fields in org.apache.commons.functor.core.algorithm declared as BinaryFunction Modifier and Type Field Description private BinaryFunction<? super T,? super T,? extends T>FoldLeft.FoldLeftHelper. functionThe wrapped function.private BinaryFunction<? super T,? super T,? extends T>FoldLeft. functionBinaryFunctionto apply to each (seed, next).private BinaryFunction<? super T,? super T,? extends T>FoldRight.FoldRightHelper. functionThe wrapped function.private BinaryFunction<? super T,? super T,? extends T>FoldRight. functionBinaryFunctionto apply to each (seed, next).Constructors in org.apache.commons.functor.core.algorithm with parameters of type BinaryFunction Constructor Description FoldLeft(BinaryFunction<? super T,? super T,? extends T> func)Create a new FoldLeft.FoldLeftHelper(BinaryFunction<? super T,? super T,? extends T> function)Create a seedless FoldLeftHelper.FoldLeftHelper(T seed, BinaryFunction<? super T,? super T,? extends T> function)Create a new FoldLeftHelper.FoldRight(BinaryFunction<? super T,? super T,? extends T> function)Create a new FoldRight.FoldRightHelper(BinaryFunction<? super T,? super T,? extends T> function)Create a seedless FoldRightHelper.FoldRightHelper(T seed, BinaryFunction<? super T,? super T,? extends T> function)Create a new FoldRightHelper. -
Uses of BinaryFunction in org.apache.commons.functor.core.comparator
Classes in org.apache.commons.functor.core.comparator that implement BinaryFunction Modifier and Type Class Description classComparatorFunction<T>Adapts aComparatorto theBinaryFunctioninterface.classMax<T>Adapts aComparatorto theBinaryFunctioninterface.classMin<T>Adapts aComparatorto theBinaryFunctioninterface. -
Uses of BinaryFunction in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement BinaryFunction Modifier and Type Class Description classBinaryCompositeBinaryFunction<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)).private static classBinaryCompositeBinaryFunction.Helper<G,H,L,R,T>Type-remembering Helper.classConditionalBinaryFunction<L,R,T>ABinaryFunctionsimiliar to Java's "ternary" or "conditional" operator (? :).classTransformedBinaryFunction<L,R,T>A BinaryFunction whose result is then run through a UnaryFunction.private static classTransformedBinaryFunction.Helper<X,L,R,T>Type-remembering helper.classTransposedFunction<L,R,T>Transposes (swaps) the arguments to some otherfunction.classUnaryCompositeBinaryFunction<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)).private static classUnaryCompositeBinaryFunction.Helper<G,H,L,R,T>Fields in org.apache.commons.functor.core.composite declared as BinaryFunction Modifier and Type Field Description private BinaryFunction<? super L,? super R,? extends T>ConditionalBinaryFunction. elseFuncthe function executed if the condition is not satisfied.private BinaryFunction<? super G,? super H,? extends T>BinaryCompositeBinaryFunction.Helper. fGlobal evaluator.private BinaryFunction<? super G,? super H,? extends T>UnaryCompositeBinaryFunction.Helper. fThe adapted function to receive(output(g), output(h)).private BinaryFunction<? super L,? super R,? extends X>TransformedBinaryProcedure.Helper. functionThe wrapped function.private BinaryFunction<? super R,? super L,? extends T>TransposedFunction. functionThe adapted function.private BinaryFunction<? super L,? super R,? extends G>BinaryCompositeBinaryFunction.Helper. gThis function evaluation will be the left argument of main evaluator.private BinaryFunction<? super L,? super R,? extends H>BinaryCompositeBinaryFunction.Helper. hThis function evaluation will be the right argument of main evaluator.private BinaryFunction<? super L,? super R,? extends X>TransformedBinaryFunction.Helper. precedingThe preceding function.private BinaryFunction<? super L,? super R,? extends T>ConditionalBinaryFunction. thenFuncthe function executed if the condition is satisfied.Methods in org.apache.commons.functor.core.composite that return BinaryFunction Modifier and Type Method Description static <L,R,T>
BinaryFunction<L,R,T>Conditional. function(BinaryPredicate<? super L,? super R> q, BinaryFunction<? super L,? super R,? extends T> r, BinaryFunction<? super L,? super R,? extends T> s)Create a conditional BinaryFunction.Methods in org.apache.commons.functor.core.composite with parameters of type BinaryFunction Modifier and Type Method Description static <L,R,G,H,T>
BinaryCompositeBinaryFunction<L,R,T>Composite. function(BinaryFunction<? super G,? super H,? extends T> f, BinaryFunction<? super L,? super R,? extends G> g, BinaryFunction<? super L,? super R,? extends H> h)Create a compositeBinaryFunction. static <L,R,G,H,T>
UnaryCompositeBinaryFunction<L,R,T>Composite. function(BinaryFunction<? super G,? super H,? extends T> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a compositeBinaryFunction. static <L,R,T>
BinaryFunction<L,R,T>Conditional. function(BinaryPredicate<? super L,? super R> q, BinaryFunction<? super L,? super R,? extends T> r, BinaryFunction<? super L,? super R,? extends T> s)Create a conditional BinaryFunction.static <L,R,T>
TransposedFunction<R,L,T>TransposedFunction. transpose(BinaryFunction<? super L,? super R,? extends T> f)Transpose a BinaryFunction.Constructors in org.apache.commons.functor.core.composite with parameters of type BinaryFunction Constructor Description BinaryCompositeBinaryFunction(BinaryFunction<? super G,? super H,? extends T> f, BinaryFunction<? super L,? super R,? extends G> g, BinaryFunction<? super L,? super R,? extends H> h)Create a new BinaryCompositeBinaryFunction.ConditionalBinaryFunction(BinaryPredicate<? super L,? super R> ifPred, BinaryFunction<? super L,? super R,? extends T> thenFunc, BinaryFunction<? super L,? super R,? extends T> elseFunc)Create a new ConditionalBinaryFunction.Helper(BinaryFunction<? super G,? super H,? extends T> f, BinaryFunction<? super L,? super R,? extends G> g, BinaryFunction<? super L,? super R,? extends H> h)Create a new Helper.Helper(BinaryFunction<? super L,? super R,? extends X> preceding, UnaryFunction<? super X,? extends T> following)Create a new Helper.Helper(BinaryFunction<? super L,? super R,? extends X> function, UnaryProcedure<? super X> procedure)Create a new Helper.Helper(BinaryFunction<? super G,? super H,? extends T> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a new Helper.TransformedBinaryFunction(BinaryFunction<? super L,? super R,? extends X> preceding, UnaryFunction<? super X,? extends T> following)Create a new TransformedBinaryFunction.TransformedBinaryProcedure(BinaryFunction<? super L,? super R,? extends X> function, UnaryProcedure<? super X> procedure)Create a new TransformedBinaryProcedure.TransposedFunction(BinaryFunction<? super R,? super L,? extends T> function)Create a new TransposedFunction.UnaryCompositeBinaryFunction(BinaryFunction<? super G,? super H,? extends T> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a new UnaryCompositeBinaryFunction.
-