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