Constructs an optional with the value already set
Returns the value of this optional if it is set. If not set then an exception is thrown.
Checks if there is no value present
Checks if a value is present or not
Sets the optional's value
Creates an empty optional
The optional itself