org.apache.commons.collections.functors
Class NOPTransformer

java.lang.Object
  |
  +--org.apache.commons.collections.functors.NOPTransformer
All Implemented Interfaces:
Serializable, Transformer

public class NOPTransformer
extends Object
implements Transformer, Serializable

Transformer implementation that does nothing.

Since:
Commons Collections 3.0
Version:
$Revision: 1.2 $ $Date: 2004/01/14 21:43:09 $
Author:
Stephen Colebourne
See Also:
Serialized Form

Field Summary
static Transformer INSTANCE
          Singleton predicate instance
 
Method Summary
 Object transform(Object input)
          Do 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

transform

public Object transform(Object input)
Do nothing
Specified by:
transform in interface Transformer
Following copied from interface: org.apache.commons.collections.Transformer
Parameters:
input - the object to be transformed
Returns:
a transformed object
Throws:
ClassCastException - (runtime) if the input is the wrong class
IllegalArgumentException - (runtime) if the input is invalid
FunctorException - (runtime) if the transform cannot be completed


Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.