A
- the argument type.public final class RightBoundProcedure<A> extends Object implements Procedure<A>
BinaryProcedure
to the
Procedure
interface
using a constant left-side argument.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 Procedure from
procedure . |
boolean |
equals(Object obj) |
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 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–2014 The Apache Software Foundation. All rights reserved.