org.apache.commons.collections
Interface Transformer
- All Known Implementing Classes:
- SwitchTransformer, FactoryTransformer, NOPTransformer, CloneTransformer, ClosureTransformer, ExceptionTransformer, ConstantTransformer, InvokerTransformer, PredicateTransformer, MapTransformer, ChainedTransformer, InstantiateTransformer, StringValueTransformer
- 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
- Version:
- $Revision: 1.8 $ $Date: 2004/01/14 21:43:03 $
- Author:
- James Strachan, Stephen Colebourne
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:
input
- the object to be transformed- Returns:
- a transformed object
- Throws:
ClassCastException
- (runtime) if the input is the wrong classIllegalArgumentException
- (runtime) if the input is invalidFunctorException
- (runtime) if the transform cannot be completed
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.