MapToExtension<S> extension
Extends the Stream class with the ability to convert each item to the same value.
- on
-
- Stream<
S>
- Stream<
Methods
-
mapTo<
T> (T value) → Stream< T> -
Available on Stream<
Emits the given constant value on the output Stream every time the source Stream emits a value.S> , provided by the MapToExtension extension