public class OptDouble extends Object
Modifier and Type | Field and Description |
---|---|
static OptDouble |
theMissingValue
Singleton instance of OptDouble with the value not present.
|
Constructor and Description |
---|
OptDouble(double value)
Constructor (value present).
|
public static final OptDouble theMissingValue
public OptDouble(double value)
value
- The value of the parameter.public double value()
Error
- if the value is not present.public double value(double defaultValue)
defaultValue
- The default value for the parameter.public boolean present()
Copyright © 2017. All rights reserved.