EndWithExtension<T> extension

Extends the Stream class with the ability to emit the given value as the final item before closing.

on

Methods

endWith(T endValue) Stream<T>
Appends a value to the source Stream before closing.