|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.item.file.transform.RecursiveCollectionLineAggregator<T>
public class RecursiveCollectionLineAggregator<T>
An implementation of LineAggregator that concatenates a collection of
items of a common type with the system line separator.
| Constructor Summary | |
|---|---|
RecursiveCollectionLineAggregator()
|
|
| Method Summary | |
|---|---|
java.lang.String |
aggregate(java.util.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecursiveCollectionLineAggregator()
| Method Detail |
|---|
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 java.lang.String aggregate(java.util.Collection<T> items)
LineAggregator
aggregate in interface LineAggregator<java.util.Collection<T>>items - values to be converted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||