Accumulative
is an interface proposed for the intermediate accumulation type A
of Collector<T, A, R>
in order to make defining custom Java Collector
s easier.
Introduction
If you've ever used Java Stream
s, you most likely used some Collector
s, e.g.: