A - the argument type.public final class RightBoundProcedure<A> extends Object implements UnaryProcedure<A>, Serializable
BinaryProcedure
to the
UnaryProcedure interface
using a constant left-side argument.
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 |
|---|
RightBoundProcedure(BinaryProcedure<? super A,? super R> procedure,
R arg)
Create a new RightBoundProcedure.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> RightBoundProcedure<L> |
bind(BinaryProcedure<? super L,? super R> procedure,
R arg)
Get a UnaryProcedure from
procedure. |
boolean |
equals(Object that) |
boolean |
equals(RightBoundProcedure<?> that)
Learn whether another RightBoundProcedure is equal to this.
|
int |
hashCode() |
void |
run(A obj)
Execute this procedure.
|
String |
toString() |
public RightBoundProcedure(BinaryProcedure<? super A,? super R> procedure, R arg)
R - bound arg typeprocedure - the procedure to adaptarg - the constant argument to usepublic void run(A obj)
run in interface UnaryProcedure<A>obj - an A parameter to this executionpublic boolean equals(RightBoundProcedure<?> that)
that - RightBoundProcedure to testpublic static <L,R> RightBoundProcedure<L> bind(BinaryProcedure<? super L,? super R> procedure, R arg)
procedure.L - the left argument type.R - the right argument type.procedure - to adaptarg - right side argumentCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.