S - state datapublic interface ParameterConsumer<S>
The third parameter lets callers pass in a stateful object to be modified with the key-value pairs, so the ParameterConsumer implementation itself can be stateless and potentially reusable.
ReusableMessage| Modifier and Type | Method and Description |
|---|---|
void |
accept(java.lang.Object parameter,
int parameterIndex,
S state)
Performs an operation given the specified arguments.
|
void accept(java.lang.Object parameter,
int parameterIndex,
S state)
parameter - the parameterparameterIndex - Index of the parameterstate -