Gets the value of this optional if it exists, otherwise uses a given default value.
The value to return if no default value exists.
The value of the optional, or the default value if this optional is empty.
Gets the value of this optional if it exists, otherwise uses a given default value.