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 Link icon

    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 Link icon

    consume, fold
  • Method Details Link icon

    • getInitialState Link icon

      S getInitialState()
    • fold Link icon

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

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