de.unkrig.commons.lang.protocol
Interface TransformerWhichThrows<I,O,EX extends java.lang.Throwable>
- Type Parameters:
I - The type of the consumed subjectO - The type of the productEX - The throwable type that transform(Object) may throw
public interface TransformerWhichThrows<I,O,EX extends java.lang.Throwable>
Like Transformer, but the transform(Object) method is permitted to throw a given exception.
IMPORTANT NOTICE:
When using this type in a variable, parameter or field declaration, never write
TransformerWhichThrows<
input-type,
output-type,
thrown-exception
>
, but always
TransformerWhichThrows<
? super input-type,
? extends output-type,
? extends thrown-exception
>
.
- 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)
throws EX extends java.lang.Throwable
- Transforms a (non-null) object of type
I into a (non-null) object of type O.
- Throws:
EX extends java.lang.Throwable