T - the returned value type.public final class FullyBoundFunction<T> extends Object implements Function<T>, Serializable
BinaryFunction
to the
Function interface
using constant arguments.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying objects are. Attempts to serialize
an instance whose delegates are not
Serializable will result in an exception.| Constructor and Description |
|---|
FullyBoundFunction(BinaryFunction<? super L,? super R,? extends T> function,
L left,
R right)
Create a new FullyBoundFunction.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R,T> FullyBoundFunction<T> |
bind(BinaryFunction<? super L,? super R,? extends T> function,
L left,
R right)
Adapt a BinaryFunction as a Function.
|
boolean |
equals(FullyBoundFunction<?> that)
Learn whether another FullyBoundFunction is equal to this.
|
boolean |
equals(Object that) |
T |
evaluate()
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public FullyBoundFunction(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 boolean equals(FullyBoundFunction<?> that)
that - FullyBoundFunction to testpublic static <L,R,T> FullyBoundFunction<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-2013 The Apache Software Foundation. All Rights Reserved.