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.
- Commons Collections 1.0
- James Strachan
- Stephen Colebourne
transform
public Object transform(Object input)
Transforms the input object (leaving it unchanged) into some output object.
- input - the object to be transformed
- a transformed object
- (runtime) if the input is the wrong class
- (runtime) if the input is invalidFunctorException
- (runtime) if the transform cannot be completed