- of
Creates a new Option of a given value.
- getOrElse
Returns the value if this is a Some, otherwise the other value is returned, if
this is a None. Pleas
- get
Gets the value if this is a Some or throws if this is a None.
- none
Returns the single instance of None
- isDefined
Returns true, if this is Some, otherwise false, if this is None. Please note
that it is possible to
- getOrElseThrow
Returns the value if this is a Some, otherwise throws an exception.
- isEmpty
Returns true, if this is None, otherwise false, if this is Some.
- some
Creates a new Some of a given value. The only difference to Option#of(Object)
is, when called with a
- map
Maps the value and wraps it in a new Some if this is a Some, returns None.
- flatMap
Maps the value to a new Option if this is a Some, otherwise returns None.
- getOrNull
- equals