|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use BinaryFunction | |
---|---|
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 - and
Comparable -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 | |
---|---|
class |
BinaryPredicateBinaryFunction<L,R>
Adapts a BinaryPredicate
to the
BinaryFunction interface. |
class |
BinaryProcedureBinaryFunction<L,R,T>
Adapts a BinaryProcedure
to the
BinaryFunction interface
by always returning null . |
class |
IgnoreLeftFunction<L,R,T>
Adapts a UnaryFunction
to the
BinaryFunction interface
by ignoring the first binary argument. |
class |
IgnoreRightFunction<L,R,T>
Adapts a UnaryFunction
to the
BinaryFunction interface
by ignoring the second binary argument. |
Methods in org.apache.commons.functor.adapter with parameters of type BinaryFunction | ||
---|---|---|
static
|
BinaryFunctionUnaryFunction.adapt(BinaryFunction<? super A,? super A,? extends T> function)
Adapt a BinaryFunction as a UnaryFunction. |
|
static
|
BinaryFunctionBinaryProcedure.adapt(BinaryFunction<? super L,? super R,?> function)
Adapt the given, possibly- null ,
BinaryFunction to the
BinaryProcedure interface. |
|
static
|
BinaryFunctionBinaryPredicate.adapt(BinaryFunction<? super L,? super R,Boolean> function)
Adapt the given, possibly- null , BinaryFunction to the BinaryPredicate interface. |
|
static
|
LeftBoundFunction.bind(BinaryFunction<? super L,? super R,? extends T> function,
L arg)
Adapt a BinaryFunction as a UnaryFunction. |
|
static
|
FullyBoundFunction.bind(BinaryFunction<? super L,? super R,? extends T> function,
L left,
R right)
Adapt a BinaryFunction as a Function. |
|
static
|
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 | |
---|---|
BinaryFunctionBinaryPredicate(BinaryFunction<? super L,? super R,Boolean> function)
Create an BinaryPredicate wrapping the given
BinaryFunction . |
|
BinaryFunctionBinaryProcedure(BinaryFunction<? super L,? super R,?> function)
Create an BinaryProcedure wrapping
the given BinaryFunction . |
|
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 | |
---|---|
class |
Constant<T>
Evaluates to constant value. |
Fields in org.apache.commons.functor.core declared as BinaryFunction | |
---|---|
static BinaryFunction<Object,Object,Object> |
RightIdentity.FUNCTION
Right-identity function. |
static BinaryFunction<Object,Object,Object> |
LeftIdentity.FUNCTION
Left-identity function. |
Methods in org.apache.commons.functor.core that return BinaryFunction | ||
---|---|---|
static
|
RightIdentity.function()
Get a typed right-identity BinaryFunction. |
|
static
|
LeftIdentity.function()
Get a Left-identity BinaryFunction. |
Uses of BinaryFunction in org.apache.commons.functor.core.algorithm |
---|
Classes in org.apache.commons.functor.core.algorithm that implement BinaryFunction | |
---|---|
class |
FindWithinGenerator<E>
Return the first Object in a Generator matching a UnaryPredicate . |
class |
FoldLeft<T>
Functional left-fold algorithm against the elements of a Generator . |
class |
FoldRight<T>
Functional right-fold algorithm against the elements of a Generator . |
class |
IndexOfInGenerator<T>
Return the index of the first Object in a Generator matching a UnaryPredicate , or -1 if not found. |
Constructors in org.apache.commons.functor.core.algorithm with parameters of type BinaryFunction | |
---|---|
FoldLeft(BinaryFunction<? super T,? super T,? extends T> func)
Create a new FoldLeft. |
|
FoldRight(BinaryFunction<? super T,? super T,? extends T> function)
Create a new FoldRight. |
Uses of BinaryFunction in org.apache.commons.functor.core.comparator |
---|
Classes in org.apache.commons.functor.core.comparator that implement BinaryFunction | |
---|---|
class |
ComparatorFunction<T>
Adapts a Comparator to the
BinaryFunction interface. |
class |
Max<T>
Adapts a Comparator to the
BinaryFunction interface. |
class |
Min<T>
Adapts a Comparator to the
BinaryFunction interface. |
Uses of BinaryFunction in org.apache.commons.functor.core.composite |
---|
Classes in org.apache.commons.functor.core.composite that implement BinaryFunction | |
---|---|
class |
BinaryCompositeBinaryFunction<L,R,T>
A BinaryFunction composed of
three binary functions, f, g and h,
evaluating the ordered parameters x, y
to f(g(x,y),h(x,y)) . |
class |
ConditionalBinaryFunction<L,R,T>
A BinaryFunction
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
TransformedBinaryFunction<L,R,T>
A BinaryFunction whose result is then run through a UnaryFunction. |
class |
TransposedFunction<L,R,T>
Transposes (swaps) the arguments to some other function . |
class |
UnaryCompositeBinaryFunction<L,R,T>
A BinaryFunction composed of
one binary function, f, and two unary
functions, g and h,
evaluating the ordered parameters x, y
to f(g(x),h(y)) . |
Methods in org.apache.commons.functor.core.composite that return BinaryFunction | ||
---|---|---|
static
|
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 | ||
---|---|---|
static
|
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 composite |
|
static
|
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 composite |
|
static
|
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 composite |
|
static
|
Composite.function(BinaryFunction<? super G,? super H,? extends T> f,
UnaryFunction<? super L,? extends G> g,
UnaryFunction<? super R,? extends H> h)
Create a composite |
|
static
|
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
|
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
|
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 | |
---|---|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |