A
- the argument type.T
- the returned value type.public final class LeftBoundFunction<A,T> extends Object implements Function<A,T>
BinaryFunction
to the
Function
interface
using a constant left-side argument.Constructor and Description |
---|
LeftBoundFunction(BinaryFunction<? super L,? super A,? extends T> function,
L arg)
Create a new LeftBoundFunction instance.
|
Modifier and Type | Method and Description |
---|---|
static <L,R,T> LeftBoundFunction<R,T> |
bind(BinaryFunction<? super L,? super R,? extends T> function,
L arg)
Adapt a BinaryFunction as a Function.
|
boolean |
equals(Object obj) |
T |
evaluate(A obj)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public LeftBoundFunction(BinaryFunction<? super L,? super A,? extends T> function, L arg)
L
- bound arg typefunction
- the function to adaptarg
- the constant argument to usepublic static <L,R,T> LeftBoundFunction<R,T> bind(BinaryFunction<? super L,? super R,? extends T> function, L arg)
L
- left typeR
- right typeT
- result typefunction
- to adaptarg
- left side argumentCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.