public class CollectionToStringTransformer extends Object implements FunctionTransformer, Serializable
Collection
to a String. A string delimeted by a character/string (default is comma)
elementTransformer
before joinConstructor and Description |
---|
CollectionToStringTransformer() |
Modifier and Type | Method and Description |
---|---|
String |
getDelimiter()
If specified will join the elements using the delimiter.
|
org.apache.commons.collections.Transformer |
getElementTransformer()
If specified will apply the
Transformer to each individual element |
void |
setDelimiter(String delimiter)
If specified will join the elements using the delimiter.
|
void |
setElementTransformer(org.apache.commons.collections.Transformer elementTransformer)
If specified will apply the
Transformer to each individual element |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public String getDelimiter()
public void setDelimiter(String delimiter)
public org.apache.commons.collections.Transformer getElementTransformer()
Transformer
to each individual elementpublic void setElementTransformer(org.apache.commons.collections.Transformer elementTransformer)
Transformer
to each individual elementCopyright © 2018. All rights reserved.