org.apache.commons.collections.functors

Class NOPTransformer

public class NOPTransformer extends Object implements Transformer, Serializable

Transformer implementation that does nothing.

Since: Commons Collections 3.0

Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $

Author: Stephen Colebourne

Field Summary
static TransformerINSTANCE
Singleton predicate instance
Method Summary
static TransformergetInstance()
Factory returning the singleton instance.
Objecttransform(Object input)
Transforms the input to result by doing nothing.

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 Object transform(Object input)
Transforms the input to result by doing nothing.

Parameters: input the input object to transform

Returns: the transformed result which is the input

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