public class ListItemReader<T> extends java.lang.Object implements ItemReader<T>
ItemReader that pulls data from a list. Useful for testing.| Constructor and Description |
|---|
ListItemReader(java.util.List<T> list) |
public ListItemReader(java.util.List<T> list)
public T read()
ItemReadernull 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 in interface ItemReader<T>