Applies the given mapping function if the value is present.
map_func |
The mapping function. |
If the value is present, the mapping function will be applied to the value, and the optional provided by the function will be returned. Otherwise, returns an empty Optional. |