java.lang.Object | +--org.apache.commons.collections.functors.ChainedTransformerAll Implemented Interfaces:
ChainedTransformer(Transformer[] transformers) Constructor that performs no validation. |
static Transformer | getInstance(Transformer[] transformers) Factory method that performs validation and copies the parameter array. |
static Transformer | getInstance(Collection transformers) Create a new Transformer that calls each transformer in turn, passing the result into the next transformer. |
static Transformer | getInstance(Transformer transformer1, Transformer transformer2) Factory method that performs validation. |
Object | transform(Object object) Execute a list of transformers. |
public ChainedTransformer(Transformer[] transformers)
getInstance
if you want that.
public static Transformer getInstance(Collection transformers)
- if the transformers collection is null
- if any transformer in the collection is nullpublic static Transformer getInstance(Transformer transformer1, Transformer transformer2)
- if either transformer is nullpublic static Transformer getInstance(Transformer[] transformers)
- if the transformers array is null
- if any transformer in the array is nullpublic Object transform(Object object)