public class RecursiveCollectionLineAggregator<T> extends Object implements LineAggregator<Collection<T>>
LineAggregator that concatenates a collection of
items of a common type with the system line separator.| Constructor and Description |
|---|
RecursiveCollectionLineAggregator() |
| Modifier and Type | Method and Description |
|---|---|
String |
aggregate(Collection<T> items)
Create a string from the value provided.
|
void |
setDelegate(LineAggregator<T> delegate)
Public setter for the
LineAggregator to use on single items, that
are not Strings. |
public void setDelegate(LineAggregator<T> delegate)
LineAggregator to use on single items, that
are not Strings. This can be used to strategise the conversion of
collection and array elements to a String.delegate - the line aggregator to set. Defaults to a pass through.public String aggregate(Collection<T> items)
LineAggregatoraggregate in interface LineAggregator<Collection<T>>items - values to be convertedCopyright © 2014. All rights reserved.