public final class NoOp extends Object implements Procedure, UnaryProcedure<Object>, BinaryProcedure<Object,Object>, Serializable
Note that this class implements Procedure,
UnaryProcedure, 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> UnaryProcedure<A> |
unaryInstance()
Get a typed NoOp
UnaryProcedure. |
public NoOp()
public void run()
public void run(Object obj)
run in interface UnaryProcedure<Object>obj - an A parameter to this executionpublic 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> UnaryProcedure<A> unaryInstance()
UnaryProcedure.A - typeUnaryProcedure<A>public static <L,R> BinaryProcedure<L,R> binaryInstance()
BinaryProcedure.L - left typeR - right typeBinaryProcedure<L, R>Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.