Class StreamWrappingChain<T>

java.lang.Object
com.github.hakenadu.javalangchains.chains.base.StreamWrappingChain<T>
All Implemented Interfaces:
Chain<T,​Stream<T>>

public final class StreamWrappingChain<T>
extends Object
implements Chain<T,​Stream<T>>
utility Chain which wraps the output of the previous Chain in a Stream for processing using Stream consuming Chains.
  • Constructor Details

  • Method Details

    • run

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