| Modifier and Type | Field and Description |
|---|---|
static OptString |
theMissingValue
Singleton instance of OptString with the value not present.
|
| Constructor and Description |
|---|
OptString(String value)
Constructor (value present).
|
public static final OptString theMissingValue
public OptString(String value)
value - The value of the parameter.public String value()
String value of the parameter. It is an error if the
value is absent.public String value(String defaultValue)
String value of this parameter, or a default value if
the value is absent.defaultValue - The default value for the parameter.String value of this parameter if present, or the
value of 'defaultValue' if not present.public boolean present()
Copyright © 2017. All rights reserved.