Class FlattenList<T>

Type Parameters:
T - the value type.
All Implemented Interfaces:
Flow.Processor<List<T>,T>, Flow.Publisher<T>, Flow.Subscriber<List<T>>

public class FlattenList<T> extends Buffered<List<T>,T>
The processor emits the elements in the received lists individually. It uses a shared thread.
Since:
3.0
Author:
Werner Donné
  • Constructor Details

    • FlattenList

      public FlattenList()
  • Method Details

    • flatMapList

      public static <T, R> Flow.Processor<T,R> flatMapList(Function<T,List<R>> function)
      Returns a processor that emits the elements from the generated list individually.
      Type Parameters:
      T - the value type.
      Parameters:
      function - the function that generates the list.
      Returns:
      The processor
    • flattenList

      public static <T> Flow.Processor<List<T>,T> flattenList()
      Returns a processor that emits the elements in the received lists individually.
      Type Parameters:
      T - the value type.
      Returns:
      The processor.
    • onNextAction

      protected boolean onNextAction(List<T> list)
      Description copied from class: Buffered
      The onNext method uses this method.
      Specified by:
      onNextAction in class Buffered<List<T>,T>
      Parameters:
      list - the received value.