org.apache.commons.collections
Interface Transformer

public interface Transformer
Defines a functor interface implemented by classes that transform one object into another.

A Transformer converts the input object to the output object. The input object should be left unchanged. Transformers are typically used for type conversions, or extracting data from an object.

Standard implementations of common transformers are provided by TransformerUtils . These include method invokation, returning a constant, cloning and returning the string value.

SinceCommons Co
Version$Revision:
AuthorJames Strachan, Stephen Colebourne
Wiki javadoc Use textile entry format.
Add your comments here.
Method Summary
Object transform( Object input )
Transforms the input object (leaving it unchanged) into some output object.
transform
public Object transform ( Object input )
Transforms the input object (leaving it unchanged) into some output object.
Parameters
TypeNameDescription
Object input the object to be transformed, should be left unchanged
Wiki javadoc Use textile entry format.
Add your comments here.