org.schmant.lang
Interface ObjectTransformer<T>
- All Known Implementing Classes:
- CastingToStringTransformer, CastingTransformer
public interface ObjectTransformer<T>
This interface defines an object that transforms an object into the target
type T.
- Since:
- 1.0
- Author:
- Karl Gustafsson
transform
T transform(Object o)
throws NullPointerException,
IllegalArgumentException
- Transform the object to the target type.
- Parameters:
o - The object to transform.
- Returns:
- The transformed object.
- Throws:
NullPointerException - If o is null.
IllegalArgumentException - If the transformer cannot transform
the supplied object.