getOrDefault
Returns the value if it is present, otherwise returns the specified defaultValue.
Return
the value if present, otherwise defaultValue
Parameters
defaultValue
the value to return if the result is a failure
Returns the value if it is present, otherwise returns the specified defaultValue.
the value if present, otherwise defaultValue
the value to return if the result is a failure