org.apache.commons.collections.functors
Class NOPTransformer<I>

java.lang.Object
  extended by org.apache.commons.collections.functors.NOPTransformer<I>
All Implemented Interfaces:
Serializable, Transformer<I,I>

public class NOPTransformer<I>
extends Object
implements Transformer<I,I>, Serializable

Transformer implementation that does nothing.

Since:
Commons Collections 3.0
Version:
$Revision: 1.1.1.1 $ $Date: 2005/05/23 04:34:28 $
Author:
Matt Hall, John Watkinson, Stephen Colebourne
See Also:
Serialized Form

Field Summary
static Transformer INSTANCE
          Singleton predicate instance
 
Method Summary
static Transformer getInstance()
          Factory returning the singleton instance.
 I transform(I 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
 

Field Detail

INSTANCE

public static final Transformer INSTANCE
Singleton predicate instance

Method Detail

getInstance

public static Transformer getInstance()
Factory returning the singleton instance.

Returns:
the singleton instance
Since:
Commons Collections 3.1

transform

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

Specified by:
transform in interface Transformer<I,I>
Parameters:
input - the input object to transform
Returns:
the transformed result which is the input


Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.