Uses of Interface
org.apache.commons.functor.BinaryFunction
Packages that use BinaryFunction
Package
Description
Classes that adapt one functor interface to another.
Commonly used functor implementations.
Various algorithm-esque functors.
Comparator- and
Comparable-based functors, algorithms and utilities.
Functors composed of other functors.
-
Uses of BinaryFunction in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement BinaryFunctionModifier and TypeClassDescriptionfinal classAdapts aBinaryPredicateto theBinaryFunctioninterface.final classfinal classIgnoreLeftFunction<L,R, T> Adapts aUnaryFunctionto theBinaryFunctioninterface by ignoring the first binary argument.final classIgnoreRightFunction<L,R, T> Adapts aUnaryFunctionto theBinaryFunctioninterface by ignoring the second binary argument.Fields in org.apache.commons.functor.adapter declared as BinaryFunctionModifier and TypeFieldDescriptionprivate final BinaryFunction<? super L, ? super R, Boolean> BinaryFunctionBinaryPredicate.functionTheBinaryFunctionI'm wrapping.private final BinaryFunction<? super L, ? super R, ?> BinaryFunctionBinaryProcedure.functionTheBinaryFunctionI'm wrapping.private final BinaryFunction<? super A, ? super A, ? extends T> BinaryFunctionUnaryFunction.functionThe adapted function.private final BinaryFunction<Object, Object, ? extends T> FullyBoundFunction.functionTheBinaryFunctionI'm wrapping.private final BinaryFunction<Object, ? super A, ? extends T> LeftBoundFunction.functionTheBinaryFunctionI'm wrapping.private final BinaryFunction<? super A, Object, ? extends T> RightBoundFunction.functionTheBinaryFunctionI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type BinaryFunctionModifier and TypeMethodDescriptionstatic <L,R, T> BinaryFunctionBinaryPredicate <L, R> BinaryFunctionBinaryPredicate.adapt(BinaryFunction<? super L, ? super R, 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 BinaryFunctionModifierConstructorDescriptionBinaryFunctionBinaryPredicate(BinaryFunction<? super L, ? super R, 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.<L,R> FullyBoundFunction(BinaryFunction<? super L, ? super R, ? extends T> function, L left, R right) Create a new FullyBoundFunction.<L>LeftBoundFunction(BinaryFunction<? super L, ? super A, ? extends T> function, L arg) Create a new LeftBoundFunction instance.<R>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 BinaryFunctionFields in org.apache.commons.functor.core declared as BinaryFunctionModifier and TypeFieldDescriptionstatic final BinaryFunction<Object, Object, Object> LeftIdentity.FUNCTIONLeft-identity function.static final BinaryFunction<Object, Object, Object> RightIdentity.FUNCTIONRight-identity function.Methods in org.apache.commons.functor.core that return BinaryFunctionModifier and TypeMethodDescriptionstatic <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 BinaryFunctionModifier and TypeClassDescriptionfinal classReturn 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.final classReturn the index of the first Object in aGeneratormatching aUnaryPredicate, or -1 if not found.Fields in org.apache.commons.functor.core.algorithm declared as BinaryFunctionModifier and TypeFieldDescriptionprivate final BinaryFunction<? super T, ? super T, ? extends T> FoldLeft.FoldLeftHelper.functionThe wrapped function.private final BinaryFunction<? super T, ? super T, ? extends T> FoldLeft.functionBinaryFunctionto apply to each (seed, next).private final BinaryFunction<? super T, ? super T, ? extends T> FoldRight.FoldRightHelper.functionThe wrapped function.private final 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 BinaryFunctionModifierConstructorDescriptionFoldLeft(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.(package private)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.(package private)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 BinaryFunctionModifier and TypeClassDescriptionfinal classAdapts aComparatorto theBinaryFunctioninterface.final classMax<T>Adapts aComparatorto theBinaryFunctioninterface.final 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 BinaryFunctionModifier and TypeClassDescriptionclassABinaryFunctioncomposed 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.final 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 final 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 BinaryFunctionModifier and TypeFieldDescriptionprivate final 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 final 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 final 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 BinaryFunctionModifier and TypeMethodDescriptionstatic <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 BinaryFunctionModifier and TypeMethodDescriptionstatic <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 BinaryFunctionModifierConstructorDescription<G,H> 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.privateHelper(BinaryFunction<? super L, ? super R, ? extends X> preceding, UnaryFunction<? super X, ? extends T> following) Create a new Helper.privateHelper(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.<X>TransformedBinaryFunction(BinaryFunction<? super L, ? super R, ? extends X> preceding, UnaryFunction<? super X, ? extends T> following) Create a new TransformedBinaryFunction.<X>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.<G,H> 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.