L - the left argument type.R - the right argument type.public final class IgnoreRightProcedure<L,R> extends Object implements BinaryProcedure<L,R>, Serializable
UnaryProcedure
to the
BinaryProcedure 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 |
|---|
IgnoreRightProcedure(UnaryProcedure<? super L> procedure)
Create a new IgnoreRightProcedure.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> IgnoreRightProcedure<L,R> |
adapt(UnaryProcedure<? super L> procedure)
Adapt a UnaryProcedure to the BinaryProcedure interface.
|
boolean |
equals(IgnoreRightProcedure<?,?> that)
Learn whether another IgnoreRightProcedure is equal to this.
|
boolean |
equals(Object that) |
int |
hashCode() |
void |
run(L left,
R right)
Execute this procedure.
|
String |
toString() |
public IgnoreRightProcedure(UnaryProcedure<? super L> procedure)
procedure - UnaryProcedure to adaptpublic void run(L left, R right)
run in interface BinaryProcedure<L,R>left - the L element of the ordered pair of argumentsright - the R element of the ordered pair of argumentspublic boolean equals(IgnoreRightProcedure<?,?> that)
that - IgnoreRightProcedure to testpublic static <L,R> IgnoreRightProcedure<L,R> adapt(UnaryProcedure<? super L> procedure)
L - left typeR - right typeprocedure - UnaryProcedure to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.