Interface InitConsumer<D,S>

Type Parameters:
D - the parameter type
S - the acted-upon type
All Superinterfaces:
Consumer<D,S>

public interface InitConsumer<D,S> extends Consumer<D,S>
Subinterface which provides an initial state, on which the very first call to Consumer.consume(D, T) can be executed.
  • Method Summary

    Modifier and Type
    Method
    Description
    default S
    fold(Iterable<? extends D> things)
     
    default S
    fold(List<? extends D> elems)
     
     

    Methods inherited from interface eu.bandm.tools.ops.Consumer

    consume, fold
  • Method Details

    • getInitialState

      S getInitialState()
    • fold

      default S fold(Iterable<? extends D> things)
    • fold

      default S fold(List<? extends D> elems)