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