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