public final class NoOp extends Object implements NullaryProcedure, Procedure<Object>, BinaryProcedure<Object,Object>
Note that this class implements Procedure
,
Procedure
, and BinaryProcedure
.
Modifier and Type | Field and Description |
---|---|
static NoOp |
INSTANCE
Basic NoOp instance.
|
Constructor and Description |
---|
NoOp()
Create a new NoOp.
|
Modifier and Type | Method and Description |
---|---|
static <L,R> BinaryProcedure<L,R> |
binaryInstance()
Get a typed NoOp
BinaryProcedure . |
boolean |
equals(Object that) |
int |
hashCode() |
static NoOp |
instance()
Get a NoOp instance.
|
void |
run()
Execute this procedure.
|
void |
run(Object obj)
Execute this procedure.
|
void |
run(Object left,
Object right)
Execute this procedure.
|
String |
toString() |
static <A> Procedure<A> |
unaryInstance()
Get a typed NoOp
Procedure . |
public NoOp()
public void run()
run
in interface Runnable
run
in interface NullaryProcedure
public void run(Object left, Object right)
run
in interface BinaryProcedure<Object,Object>
left
- the L element of the ordered pair of argumentsright
- the R element of the ordered pair of argumentspublic static <A> Procedure<A> unaryInstance()
Procedure
.A
- typeProcedure<A>
public static <L,R> BinaryProcedure<L,R> binaryInstance()
BinaryProcedure
.L
- left typeR
- right typeBinaryProcedure<L, R>
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.