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>, Serializable
UnaryFunction
to the
BinaryFunction interface
by ignoring the second 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 |
|---|
IgnoreRightFunction(UnaryFunction<? super L,? extends T> function)
Create a new IgnoreRightFunction.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R,T> IgnoreRightFunction<L,R,T> |
adapt(UnaryFunction<? super L,? extends T> function)
Adapt a UnaryFunction to the BinaryFunction interface.
|
boolean |
equals(IgnoreRightFunction<?,?,?> that)
Learn whether another IgnoreRightFunction is equal to this.
|
boolean |
equals(Object that) |
T |
evaluate(L left,
R right)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public IgnoreRightFunction(UnaryFunction<? super L,? extends T> function)
function - UnaryFunction 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 boolean equals(IgnoreRightFunction<?,?,?> that)
that - IgnoreRightFunction to testpublic static <L,R,T> IgnoreRightFunction<L,R,T> adapt(UnaryFunction<? super L,? extends T> function)
L - left typeR - right typeT - result typefunction - UnaryFunction to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.