public final class BoundNullaryProcedure extends Object implements NullaryProcedure
Procedure
to the
NullaryProcedure
interface
using a constant unary argument.Constructor and Description |
---|
BoundNullaryProcedure(Procedure<? super A> procedure,
A arg)
Create a new BoundNullaryProcedure instance.
|
Modifier and Type | Method and Description |
---|---|
static <A> BoundNullaryProcedure |
bind(Procedure<? super A> procedure,
A arg)
Adapt the given, possibly-
null ,
Procedure to the
NullaryProcedure interface by binding
the specified Object as a constant
argument. |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
run()
Execute this procedure.
|
String |
toString() |
public BoundNullaryProcedure(Procedure<? super A> procedure, A arg)
A
- arg typeprocedure
- the procedure to adaptarg
- the constant argument to usepublic void run()
run
in interface Runnable
run
in interface NullaryProcedure
public static <A> BoundNullaryProcedure bind(Procedure<? super A> procedure, A arg)
null
,
Procedure
to the
NullaryProcedure
interface by binding
the specified Object
as a constant
argument.
When the given Procedure
is null
,
returns null
.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.