- get
If a value is present in this OptionalDouble, returns the value, otherwise
throws IllegalStateExcept
- isPresent
Return true if there is a value present, otherwise false.
- absent
Returns an absent OptionalDouble instance. No value is present for this
Optional.
- ifPresent
If a value is present, invoke the specified consumer with the value, otherwise
do nothing.
- ifPresentOrElse
If a value is present, invoke the specified consumer with the value, otherwise
invoke the function p
- of
Returns an OptionalDouble with the specified present value.
- or
Return the value if present, otherwise invoke otherSupplier and return the
result of that invocation
- orThrow
Return the contained value, if present, otherwise throw an exception instance
provided as the parame