类 ListItemReader<T>
- java.lang.Object
- org.springframework.batch.item.support.ListItemReader<T>
- 所有已实现的接口:
ItemReader<T>
public class ListItemReader<T> extends java.lang.Object implements ItemReader<T>
AnItemReader
that pulls data from a list. Useful for testing.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 ListItemReader(java.util.List<T> list)
构造器详细资料
ListItemReader
public ListItemReader(java.util.List<T> list)
方法详细资料
read
public T read()
从接口复制的说明:ItemReader
Reads a piece of input data and advance to the next one. Implementations must returnnull
at the end of the input data set. In a transactional setting, caller might get the same item twice from successive calls (or otherwise), if the first call was in a transaction that rolled back.- 指定者:
read
在接口中ItemReader<T>
- 返回:
- T the item to be processed or
null
if the data source is exhausted