net.sf.collections15.functors.transformer
Class NOPTransformer<E>

java.lang.Object
  extended by net.sf.collections15.functors.transformer.NOPTransformer<E>
All Implemented Interfaces:
java.io.Serializable, Transformer<E,E>

public class NOPTransformer<E>
extends java.lang.Object
implements Transformer<E,E>, java.io.Serializable

Transformer implementation that does nothing.

Since:
Collections15 1.0
Author:
Stephen Colebourne, Chris Lambrou (port to Java 5.0)
See Also:
Serialized Form

Constructor Summary
protected NOPTransformer()
          Creates a new instance.
 
Method Summary
static
<T> NOPTransformer<T>
getInstance()
          Returns an instance of NOPTransformer.
 E transform(E input)
          Transforms the input to result by doing nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOPTransformer

protected NOPTransformer()
Creates a new instance.

Method Detail

getInstance

public static <T> NOPTransformer<T> getInstance()
Returns an instance of NOPTransformer.

Returns:
An instance of NOPTransformer.
Since:
Collections15 1.0

transform

public E transform(E input)
Transforms the input to result by doing nothing.

Specified by:
transform in interface Transformer<E,E>
Parameters:
input - The input object to transform.
Returns:
The input object.


Copyright © 2001-2005 SourceForge.net. All Rights Reserved.