L
- the left argument type.R
- the right argument type.T
- the returned value type.public final class IgnoreRightFunction<L,R,T> extends Object implements BinaryFunction<L,R,T>
Function
to the
BinaryFunction
interface
by ignoring the second binary argument.Constructor and Description |
---|
IgnoreRightFunction(Function<? super L,? extends T> function)
Create a new IgnoreRightFunction.
|
Modifier and Type | Method and Description |
---|---|
static <L,R,T> IgnoreRightFunction<L,R,T> |
adapt(Function<? super L,? extends T> function)
Adapt a Function to the BinaryFunction interface.
|
boolean |
equals(Object obj) |
T |
evaluate(L left,
R right)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public IgnoreRightFunction(Function<? super L,? extends T> function)
function
- Function to wrappublic 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> IgnoreRightFunction<L,R,T> adapt(Function<? super L,? extends T> function)
L
- left typeR
- right typeT
- result typefunction
- Function to adaptCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.