Class StreamUnwrappingChain<T>

java.lang.Object
com.github.hakenadu.javalangchains.chains.base.StreamUnwrappingChain<T>
Type Parameters:
T - Type of the element in the Stream
All Implemented Interfaces:
Chain<Stream<T>,​T>

public final class StreamUnwrappingChain<T>
extends Object
implements Chain<Stream<T>,​T>
a utility chain which is used to retrieve the element from a singleton stream
  • Constructor Details

  • Method Details

    • run

      public T run​(Stream<T> input)
      Description copied from interface: Chain
      Execute this Chain
      Specified by:
      run in interface Chain<Stream<T>,​T>
      Parameters:
      input - this chain's input
      Returns:
      this chain's output