org.apache.commons.collections.functors
Class StringValueTransformer

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

public final class StringValueTransformer
extends Object
implements Transformer, Serializable

Transformer implementation that returns the String.valueOf.

Since:
Commons Collections 3.0
Version:
$Revision: 1.3 $ $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)
          Return the String.valueOf for the object.
 
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)
Return the String.valueOf for the object.
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.