Top Description Fields Constructors Methods
org.apache.commons.collections4.functors

public final Class StringValueTransformer<T>

extends Object
implements Transformer<T, String>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.apache.commons.collections4.Transformer
Imports
java.io.Serializable, org.apache.commons.collections4.Transformer

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

Field Summary

Modifier and TypeField and Description
private static final Transformer<Object, String>
INSTANCE

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
StringValueTransformer()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
private Object
public static <
the input type
T
>
Transformer<T, String>

Returns:

the singleton instance
stringValueTransformer
()

Factory returning the singleton instance.

public String

Returns:

the transformed result
transform
(final T
the input object to transform
input
)

Implements org.apache.commons.collections4.Transformer.transform.

Transforms the input to result by calling String.valueOf.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final Transformer<Object, String> INSTANCE

Singleton predicate instance

serialVersionUIDback to summary
private static final long serialVersionUID

Serial version UID

Constructor Detail

StringValueTransformerback to summary
private StringValueTransformer()

Restricted constructor.

Method Detail

readResolveback to summary
private Object readResolve()
stringValueTransformerback to summary
public static <T> Transformer<T, String> stringValueTransformer()

Factory returning the singleton instance.

Parameters
<T>
the input type
Returns:Transformer<T, String>

the singleton instance

Annotations
@SuppressWarnings:unchecked
Since
3.1
transformback to summary
public String transform(final T input)

Implements org.apache.commons.collections4.Transformer.transform.

Transforms the input to result by calling String.valueOf.

Parameters
input:T

the input object to transform

Returns:String

the transformed result

Annotations
@Override