abstractpublic class AbstractConsumer implements Consumer<E>(Code)
Abstract implementation of the Consumer interface.
Custom implementations should rather inherit from this class
than implement the Consumer interface directly.
This increases the chance to keep custom consumers compatible
with future versions.