| Modifier and Type | Field and Description |
|---|---|
| private final Transformer | iTransformer
The transformer to wrap |
| private static final long | serialVersionUID
Serial version UID |
| Access | Constructor and Description |
|---|---|
| public | TransformerClosure(final Transformer<? super E, ?>
the transformer to call, not null transformer)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(final E
the input object input)Implements org. |
| public Transformer | |
| public static < the type that the closure acts on E> Closure | Returns: thetransformer closurethe transformer to call, null means nop transformer)Factory method that performs validation. |
| iTransformer | back to summary |
|---|---|
| private final Transformer<? super E, ?> iTransformer The transformer to wrap | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version UID | |
| TransformerClosure | back to summary |
|---|---|
| public TransformerClosure(final Transformer<? super E, ?> transformer) Constructor that performs no validation.
Use
| |
| execute | back to summary |
|---|---|
| public void execute(final E input) Implements org. Executes the closure by calling the decorated transformer.
| |
| getTransformer | back to summary |
|---|---|
| public Transformer Gets the transformer.
| |
| transformerClosure | back to summary |
|---|---|
| public static <E> Closure Factory method that performs validation.
A null transformer will return the
| |