| Modifier and Type | Field and Description |
|---|---|
| private final Closure | iClosure
The closure to wrap |
| private static final long | serialVersionUID
Serial version UID |
| Access | Constructor and Description |
|---|---|
| public | ClosureTransformer(final Closure<? super T>
the closure to call, not null closure)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the object to transform T> Transformer | Returns: theclosure transformerthe closure to call, not null closure)Factory method that performs validation. |
| public Closure | |
| public T | Returns: the transformed resultthe input object to transform input)Implements org. |
| iClosure | back to summary |
|---|---|
| private final Closure<? super T> iClosure The closure to wrap | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version UID | |
| ClosureTransformer | back to summary |
|---|---|
| public ClosureTransformer(final Closure<? super T> closure) Constructor that performs no validation.
Use
| |
| closureTransformer | back to summary |
|---|---|
| public static <T> Transformer Factory method that performs validation.
| |
| getClosure | back to summary |
|---|---|
| public Closure Gets the closure.
| |
| transform | back to summary |
|---|---|
| public T transform(final T input) Implements org. Transforms the input to result by executing a closure.
| |