public final class ExceptionTransformer<I,O> extends Object implements Transformer<I,O>, Serializable
Modifier and Type | Field and Description |
---|---|
static Transformer |
INSTANCE
Singleton predicate instance
|
Modifier and Type | Method and Description |
---|---|
static <I,O> Transformer<I,O> |
exceptionTransformer()
Factory returning the singleton instance.
|
O |
transform(I input)
Transforms the input to result by cloning it.
|
public static final Transformer INSTANCE
public static <I,O> Transformer<I,O> exceptionTransformer()
I
- the input typeO
- the output typepublic O transform(I input)
transform
in interface Transformer<I,O>
input
- the input object to transformFunctorException
- alwaysCopyright © 2001–2018 The Apache Software Foundation. All rights reserved.