InputT - The type of values put into the buffer.OutputT - The type of values extracted from the buffer.public interface MergeableState<InputT,OutputT> extends State
State that is automatically mergeable and supports buffering values.| Modifier and Type | Method and Description |
|---|---|
void |
add(InputT value)
Add a value to the buffer.
|
StateContents<OutputT> |
get()
Return the
StateContents object to use for accessing the contents of the buffer. |
StateContents<Boolean> |
isEmpty()
Return true if this state is empty.
|
void add(InputT value)
StateContents<OutputT> get()
StateContents object to use for accessing the contents of the buffer.StateContents<Boolean> isEmpty()