public interface Consumer<D,S>
Protypic instances of consumers are setter methods, I/O write operations and collection updates such as .
Modifier and Type | Method and Description |
---|---|
<T extends S> |
consume(D argument,
T state)
Act on something.
|
<T extends S> T consume(D argument, T state)
T
- the static type of the state that is invariant under the actionargument
- the parameter valuestate
- the pre-state. This object may be modified if and
only if it is also returned.state
or type-equivalent.see also the complete user documentation .