Interface Producer<R,S>

Type Parameters:
R - the type of the delivered value
S - the acted-upon type
All Known Subinterfaces:
InitProducer<R,S>

public interface Producer<R,S>
A value delivery from a stateful class. The static type of the state object must not change.

Prototypic instances of consumers are .

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasNext(S state)
     
    next(S state)
     
    produce(S state)
     
  • Method Details

    • produce

      R produce(S state)
    • hasNext

      boolean hasNext(S state)
    • next

      S next(S state)