Top Description Fields Constructors Methods
org.apache.commons.collections4.functors

public final Class NOPClosure<E>

extends Object
implements Closure<E>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.apache.commons.collections4.Closure
Imports
java.io.Serializable, org.apache.commons.collections4.Closure

Closure implementation that does nothing.
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final Closure<T>
INSTANCE

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
NOPClosure()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
execute(final E
the input object
input
)

Implements org.apache.commons.collections4.Closure.execute.

Do nothing.
public static <
the type that the closure acts on
E
>
Closure<E>

Returns:

the singleton instance
nopClosure
()

Factory returning the singleton instance.

private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final Closure<T> INSTANCE

Singleton predicate instance

Annotations
@SuppressWarnings:rawtypes
serialVersionUIDback to summary
private static final long serialVersionUID

Serial version UID

Constructor Detail

NOPClosureback to summary
private NOPClosure()

Constructor.

Method Detail

executeback to summary
public void execute(final E input)

Implements org.apache.commons.collections4.Closure.execute.

Do nothing.

Parameters
input:E

the input object

Annotations
@Override
nopClosureback to summary
public static <E> Closure<E> nopClosure()

Factory returning the singleton instance.

Parameters
<E>
the type that the closure acts on
Returns:Closure<E>

the singleton instance

Since
3.1
readResolveback to summary
private Object readResolve()