Option.None<T>, Option.Some<T>
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, some
public Some(T value)
public boolean isDefined()
Option
public T get()
Option
public java.lang.String toString()
toString
in class java.lang.Object