org.springframework.batch.item.support.builder

## Class SingleItemPeekableItemReaderBuilder<T>

- java.lang.Object
- - org.springframework.batch.item.support.builder.SingleItemPeekableItemReaderBuilder<T>

-     public class SingleItemPeekableItemReaderBuilder<T>
      extends java.lang.Object

  Creates a fully qualified SingleItemPeekeableItemReader.
  Since:
    4.0
  Author:
    Glenn Renfro

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SingleItemPeekableItemReaderBuilder()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `SingleItemPeekableItemReader<T>` | `build()` Returns a fully constructed `SingleItemPeekableItemReader`.
    `SingleItemPeekableItemReaderBuilder<T>` | `delegate(ItemReader<T> delegate)` The item reader to use as a delegate.

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

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

- - ### Constructor Detail

    - #### SingleItemPeekableItemReaderBuilder

          public SingleItemPeekableItemReaderBuilder()

  - ### Method Detail

    - #### delegate

          public SingleItemPeekableItemReaderBuilder<T> delegate(ItemReader<T> delegate)

      The item reader to use as a delegate. Items are read from the delegate and passed to the caller in `SingleItemPeekableItemReader.read()`.
      Parameters:
        `delegate` - the delegate to set
      Returns:
        this instance for method chaining
      See Also:
        `SingleItemPeekableItemReader.setDelegate(ItemReader)`

    - #### build

          public SingleItemPeekableItemReader<T> build()

      Returns a fully constructed `SingleItemPeekableItemReader`.
      Returns:
        a new `SingleItemPeekableItemReader`