Class Chunk.ChunkIterator
- java.lang.Object
- org.springframework.batch.core.step.item.Chunk.ChunkIterator
- All Implemented Interfaces:
java.util.Iterator<W>
public class Chunk.ChunkIterator extends java.lang.Object implements java.util.Iterator<W>
Special iterator for a chunk providing theremove(Throwable)
method for dynamically removing an item and adding it to the skips.- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description ChunkIterator(java.util.List<W> items)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
W
next()
void
remove()
void
remove(java.lang.Throwable e)
java.lang.String
toString()
Constructor Detail
ChunkIterator
public ChunkIterator(java.util.List<W> items)
Method Detail
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<W>
remove
public void remove(java.lang.Throwable e)
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<W>
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object