The input object is passed to the first transformer. The transformed result is passed to the second transformer and so on.
| Modifier and Type | Field and Description |
|---|---|
| private final Transformer | iTransformers
The transformers to call in turn |
| private static final long | serialVersionUID
Serial version UID |
| Access | Constructor and Description |
|---|---|
| private | ChainedTransformer(final boolean
if clone, final Transformer<? super T, ? extends T>[] true the input argument will be clonedthe transformers to chain, no nulls transformers)Hidden constructor for the use by the static factory methods. |
| public | ChainedTransformer(final Transformer<? super T, ? extends T>...
the transformers to chain, copied, no nulls transformers)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the object type T> Transformer | Returns: thechained transformerthe transformers to chain, copied, no nulls transformers)Factory method that performs validation and copies the parameter array. |
| public static < the object type T> Transformer | Returns: thechained transformera collection of transformers to chain transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer. |
| public Transformer | |
| public T | Returns: the transformed resultthe input object passed to the first transformer object)Implements org. |
| iTransformers | back to summary |
|---|---|
| private final Transformer<? super T, ? extends T>[] iTransformers The transformers to call in turn | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version UID | |
| ChainedTransformer | back to summary |
|---|---|
| private ChainedTransformer(final boolean clone, final Transformer<? super T, ? extends T>[] transformers) Hidden constructor for the use by the static factory methods.
| |
| ChainedTransformer | back to summary |
|---|---|
| public ChainedTransformer(final Transformer<? super T, ? extends T>... transformers) Constructor that performs no validation.
Use
| |
| chainedTransformer | back to summary |
|---|---|
| public static <T> Transformer Factory method that performs validation and copies the parameter array.
| |
| chainedTransformer | back to summary |
|---|---|
| public static <T> Transformer Create a new Transformer that calls each transformer in turn, passing the result into the next transformer. The ordering is that of the iterator() method on the collection.
| |
| getTransformers | back to summary |
|---|---|
| public Transformer Gets the transformers.
| |
| transform | back to summary |
|---|---|
| public T transform(T object) Implements org. Transforms the input to result via each decorated transformer
| |