public long orElseGet (LongSupplier supplier)

If a value is present, returns the value, otherwise returns the result produced by the supplying function.

Parameters:
supplier    the supplying function that produces a value to be returned

Returns:  the value, if present, otherwise the result produced by the supplying function

Exceptions:
NullPointerException    if no value is present and the supplying function is null