org.apache.commons.collections.functors

Class StringValueTransformer

public final class StringValueTransformer extends Object implements Transformer, Serializable

Transformer implementation that returns the result of calling String.valueOf on the input object.

Since: Commons Collections 3.0

Version: $Revision: 405927 $ $Date: 2006-05-12 23:57:03 +0100 (Fri, 12 May 2006) $

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 calling String.valueOf.

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 calling String.valueOf.

Parameters: input the input object to transform

Returns: the transformed result

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