Java java.util OptionalDouble fields, constructors, methods, implement or subclass

Example usage for Java java.util OptionalDouble fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util OptionalDouble.

The text is from its open source code.

Field

booleanisPresent
If true then the value is present, otherwise indicates no value is present

Method

doublegetAsDouble()
If a value is present, returns the value, otherwise throws NoSuchElementException .
OptionalDoubleof(double value)
Returns an OptionalDouble describing the given value.
doubleorElse(double other)
If a value is present, returns the value, otherwise returns other .