DefaultIfEmptyExtension<T> extension

on

Methods

defaultIfEmpty(T defaultValue) Stream<T>
Emit items from the source Stream, or a single default item if the source Stream emits nothing.