Package org.springframework.batch.core.step.item

# Class Chunk.ChunkIterator

java.lang.Object
org.springframework.batch.core.step.item.Chunk.ChunkIterator

All Implemented Interfaces:
  `Iterator<W>`

Enclosing class:
  Chunk<W>

public class Chunk.ChunkIterator extends Object implements Iterator<W>
Special iterator for a chunk providing the `remove(Throwable)` method for dynamically removing an item and adding it to the skips.

Author:
  Dave Syer

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChunkIterator(List<W> items)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  `W`
  `next()`
  `void`
  `remove()`
  `void`
  `remove(Throwable e)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining`

- ## Constructor Details

  - ### ChunkIterator

    public ChunkIterator(List<W> items)

- ## Method Details

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `Iterator<W>`

  - ### next

    public W next()
    Specified by:
      `next` in interface `Iterator<W>`

  - ### remove

    public void remove(Throwable e)

  - ### remove

    public void remove()
    Specified by:
      `remove` in interface `Iterator<W>`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`