- get
Return the object that was bound or throw a NoSuchElementException if no value
was bound.
- orElseGet
Return the object that was bound, or the result of invoking other if no value
has been bound.
- orElse
Return the object that was bound, or other if no value has been bound.
- isBound
Returns true if a result was bound.
- orElseCreate
Return the object that was bound, or a new instance of the specified class if no
value has been boun
- ifBound
Invoke the specified consumer with the bound value, or do nothing if no value
has been bound.
- map
Apply the provided mapping function to the bound value, or return an updated
unbound result if no va
- of
- orElseThrow
Return the object that was bound, or throw an exception to be created by the
provided supplier if no