L
- the left argument type.R
- the right argument type.T
- the returned value type.public class TransposedFunction<L,R,T> extends Object implements BinaryFunction<L,R,T>
function
.
For example, given a function f
and the ordered pair of arguments a,
b.
evaluates
to
f.evaluate(b,a)
.Constructor and Description |
---|
TransposedFunction(BinaryFunction<? super R,? super L,? extends T> function)
Create a new TransposedFunction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
T |
evaluate(L left,
R right)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
static <L,R,T> TransposedFunction<R,L,T> |
transpose(BinaryFunction<? super L,? super R,? extends T> f)
Transpose a BinaryFunction.
|
public TransposedFunction(BinaryFunction<? super R,? super L,? extends T> function)
function
- BinaryFunction to transpose.public final T evaluate(L left, R right)
evaluate
in interface BinaryFunction<L,R,T>
left
- the L element of the ordered pair of argumentsright
- the R element of the ordered pair of argumentspublic static <L,R,T> TransposedFunction<R,L,T> transpose(BinaryFunction<? super L,? super R,? extends T> f)
L
- the left argument type.R
- the right argument type.T
- the returned value type.f
- BinaryFunction to transposeCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.