DefaultIfEmptyExtension<T> extension

on

Methods

defaultIfEmpty(T defaultValue) Stream<T>

Available on Stream<T>, provided by the DefaultIfEmptyExtension extension

Emit items from the source Stream, or a single default item if the source Stream emits nothing.