de.unkrig.commons.lang.protocol
Interface Transformer<I,O>
- Type Parameters:
I - The type of the input parameter of transform(Object)O - The return type of transform(Object)
public interface Transformer<I,O>
An entity that transforms 'input objects' into 'output objects'.
IMPORTANT NOTICE:
When using this type in a variable, parameter or field declaration, never write
Transformer<input-type, output-type>
, but always
Transformer<? super input-type, ? extends output-type>
.
- See Also:
transform(Object)
|
Method Summary |
O |
transform(I in)
Transforms a (non-null) object of type I into a (non-null) object of type O. |
transform
O transform(I in)
- Transforms a (non-null) object of type
I into a (non-null) object of type O.