Package 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 Object
Creates a fully qualified SingleItemPeekeableItemReader.

Since:
  4.0
Author:
  Glenn Renfro

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SingleItemPeekableItemReaderBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  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 Details

  - ### SingleItemPeekableItemReaderBuilder

    public SingleItemPeekableItemReaderBuilder()

- ## Method Details

  - ### 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`