Returns the value if present, otherwise the value supplied by the supplier function.
supplier |
The supplier function to invoke if the optional is empty. |
Returns the value contained by the optional if present, otherwise returns the value provided by the supplier function. |