⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections

Interface Transformer


public interface Transformer

Defines a functor interface implemented by classes that transform one object into another. The original object is left unchanged. Transformers are typically used for type conversions, or extracting data from an object.
Since:
Commons Collections 1.0
Authors:
James Strachan
Stephen Colebourne

Method Summary

Object

transform(Object input)

Transforms the input object (leaving it unchanged) into some output object.

Method Details

transform

public Object transform(Object input)

Transforms the input object (leaving it unchanged) into some output object.

Parameters:
input - the object to be transformed
Returns:
a transformed object
Throws:
- (runtime) if the input is the wrong class
- (runtime) if the input is invalid
FunctorException - (runtime) if the transform cannot be completed