Option.None<T>, Option.Some<T>| Constructor and Description |
|---|
None() |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Get the value of the Option (if it is defined)
|
boolean |
isDefined()
Whether the Option is defined or not
|
java.lang.String |
toString() |
fromNullable, none, or, somepublic boolean isDefined()
Optionpublic T get()
Optionpublic java.lang.String toString()
toString in class java.lang.Object