public class NOPTransformer<T> extends java.lang.Object implements Transformer<T,T>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static Transformer |
INSTANCE
Singleton predicate instance
|
private static long |
serialVersionUID
Serial version UID
|
| Modifier | Constructor and Description |
|---|---|
private |
NOPTransformer()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Transformer<T,T> |
nopTransformer()
Factory returning the singleton instance.
|
private java.lang.Object |
readResolve() |
T |
transform(T input)
Transforms the input to result by doing nothing.
|
private static final long serialVersionUID
public static final Transformer INSTANCE
public static <T> Transformer<T,T> nopTransformer()
T - the input/output typepublic T transform(T input)
transform in interface Transformer<T,T>input - the input object to transformprivate java.lang.Object readResolve()