java.lang.Object | +--org.apache.commons.collections.functors.ClosureTransformerAll Implemented Interfaces:
ClosureTransformer(Closure closure) Constructor that performs no validation. |
static Transformer | getInstance(Closure closure) Factory method that performs validation. |
Object | transform(Object input) Call the closure. |
public ClosureTransformer(Closure closure)
getInstance
if you want that.
public static Transformer getInstance(Closure closure)
- if the closure is nullpublic Object transform(Object input)