L - the left argument type.R - the right argument type.T - the returned value type.public final class IgnoreLeftFunction<L,R,T> extends Object implements BinaryFunction<L,R,T>, Serializable
UnaryFunction
to the
BinaryFunction interface
by ignoring the first binary argument.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying functor is. Attempts to serialize
an instance whose delegate is not
Serializable will result in an exception.| Constructor and Description |
|---|
IgnoreLeftFunction(UnaryFunction<? super R,? extends T> function)
Create a new IgnoreLeftFunction.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R,T> IgnoreLeftFunction<L,R,T> |
adapt(UnaryFunction<? super R,? extends T> function)
Adapt a UnaryFunction to the BinaryFunction interface.
|
boolean |
equals(IgnoreLeftFunction<?,?,?> that)
Learn whether another IgnoreLeftFunction is equal to this.
|
boolean |
equals(Object that) |
T |
evaluate(L left,
R right)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public IgnoreLeftFunction(UnaryFunction<? super R,? extends T> function)
function - UnaryFunction for right argumentpublic 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 boolean equals(IgnoreLeftFunction<?,?,?> that)
that - IgnoreLeftFunction to testpublic static <L,R,T> IgnoreLeftFunction<L,R,T> adapt(UnaryFunction<? super R,? extends T> function)
L - left typeR - right typeT - result typefunction - to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.