Wrapper for a value that might or might not be present.
Static
Create an empty Optional instance
An empty Optional
Filter the value (if present)
Map the value (if present) and unwrap the resulting Optional
Perform an action if the Optional does not contain a value
Perform an action if the Optional contains a value
Check if the Optional is empty
Check if the Optional contains a value
Map the value (if present)
Create an optional
Get the value (if present) or fail with a an internal error
Get the value (if present) or return the specified default value otherwise
Get the value (if present) or fail with a user-friendly error message
Get the value (if present) or call the specified function and return its return value otherwise
Wrapper for a value that might or might not be present.