public final class NOPClosure<E> extends java.lang.Object implements Closure<E>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Closure |
INSTANCE
Singleton predicate instance
|
private static long |
serialVersionUID
Serial version UID
|
Modifier | Constructor and Description |
---|---|
private |
NOPClosure()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(E input)
Do nothing.
|
static <E> Closure<E> |
nopClosure()
Factory returning the singleton instance.
|
private java.lang.Object |
readResolve() |
private static final long serialVersionUID
public static final Closure INSTANCE
public static <E> Closure<E> nopClosure()
E
- the type that the closure acts onpublic void execute(E input)
private java.lang.Object readResolve()