类 RecursiveCollectionLineAggregator<T>
- java.lang.Object
- org.springframework.batch.item.file.transform.RecursiveCollectionLineAggregator<T>
- 所有已实现的接口:
LineAggregator<java.util.Collection<T>>
public class RecursiveCollectionLineAggregator<T> extends java.lang.Object implements LineAggregator<java.util.Collection<T>>
An implementation ofLineAggregator
that concatenates a collection of items of a common type with the system line separator.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 RecursiveCollectionLineAggregator()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String
aggregate(java.util.Collection<T> items)
Create a string from the value provided.void
setDelegate(LineAggregator<T> delegate)
Public setter for theLineAggregator
to use on single items, that are not Strings.
构造器详细资料
RecursiveCollectionLineAggregator
public RecursiveCollectionLineAggregator()
方法详细资料
setDelegate
public void setDelegate(LineAggregator<T> delegate)
Public setter for theLineAggregator
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.
aggregate
public java.lang.String aggregate(java.util.Collection<T> items)
从接口复制的说明:LineAggregator
Create a string from the value provided.- 指定者:
aggregate
在接口中LineAggregator<T>
- 参数:
items
- values to be converted- 返回:
- string