public final class FullyBoundNullaryProcedure extends Object implements NullaryProcedure
BinaryProcedure
to the
NullaryProcedure interface
using a constant left-side argument.| Constructor and Description |
|---|
FullyBoundNullaryProcedure(BinaryProcedure<? super L,? super R> procedure,
L left,
R right)
Create a new FullyBoundNullaryProcedure instance.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> FullyBoundNullaryProcedure |
bind(BinaryProcedure<? super L,? super R> procedure,
L left,
R right)
Adapt a BinaryNullaryProcedure to the NullaryProcedure interface.
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
run()
Execute this procedure.
|
String |
toString() |
public FullyBoundNullaryProcedure(BinaryProcedure<? super L,? super R> procedure, L left, R right)
L - left typeR - right typeprocedure - the procedure to adaptleft - the left argument to useright - the right argument to usepublic void run()
run in interface Runnablerun in interface NullaryProcedurepublic static <L,R> FullyBoundNullaryProcedure bind(BinaryProcedure<? super L,? super R> procedure, L left, R right)
L - left typeR - right typeprocedure - to adaptleft - left side argumentright - right side argumentCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.