org.apache.commons.collections.functors
Class StringValueTransformer<T>

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

public final class StringValueTransformer<T>
extends Object
implements Transformer<T,String>, Serializable

Transformer implementation that returns the String.valueOf.

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

Method Summary
static
<T> Transformer<T,String>
getInstance()
          Factory returning the singleton instance.
 String transform(T input)
          Transforms the input to result by calling String.valueOf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static <T> Transformer<T,String> getInstance()
Factory returning the singleton instance.

Returns:
the singleton instance
Since:
Commons Collections 3.1

transform

public String transform(T input)
Transforms the input to result by calling String.valueOf.

Specified by:
transform in interface Transformer<T,String>
Parameters:
input - the input object to transform
Returns:
the transformed result


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