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

public Class NOPTransformer<T>

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

Transformer implementation that does nothing.
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final Transformer<I, O>
INSTANCE

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
NOPTransformer()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public static <
the input/output type
T
>
Transformer<T, T>

Returns:

the singleton instance
nopTransformer
()

Factory returning the singleton instance.

private Object
public T

Returns:

the transformed result which is the input
transform
(final T
the input object to transform
input
)

Implements org.apache.commons.collections4.Transformer.transform.

Transforms the input to result by doing nothing.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final Transformer<I, O> INSTANCE

Singleton predicate instance

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

Serial version UID

Constructor Detail

NOPTransformerback to summary
private NOPTransformer()

Constructor.

Method Detail

nopTransformerback to summary
public static <T> Transformer<T, T> nopTransformer()

Factory returning the singleton instance.

Parameters
<T>
the input/output type
Returns:Transformer<T, T>

the singleton instance

Since
3.1
readResolveback to summary
private Object readResolve()
transformback to summary
public T transform(final T input)

Implements org.apache.commons.collections4.Transformer.transform.

Transforms the input to result by doing nothing.

Parameters
input:T

the input object to transform

Returns:T

the transformed result which is the input

Annotations
@Override