I- the input type to the transformer
O- the output type from the transformer
public interface Transformer<I,O>
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 invocation, returning a constant,
cloning and returning the string value.
input- the object to be transformed, should be left unchanged
ClassCastException- (runtime) if the input is the wrong class
IllegalArgumentException- (runtime) if the input is invalid
FunctorException- (runtime) if the transform cannot be completed
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.