Example usage for Java java.util OptionalDouble fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isPresent If true then the value is present, otherwise indicates no value is present |
double | getAsDouble() If a value is present, returns the value, otherwise throws NoSuchElementException . |
OptionalDouble | of(double value) Returns an OptionalDouble describing the given value. |
double | orElse(double other) If a value is present, returns the value, otherwise returns other . |