object Option
- Companion
- class
- Source
- Option.scala
Type members
Inherited types
Value members
Concrete methods
An Option factory which creates Some(x) if the argument is not null, and None if it is null.
- Value Params
- x
the value
- Returns
Some(value) if value != null, None if value == null
- Source
- Option.scala
An Option factory which returns None
in a manner consistent with
the collections hierarchy.
- Source
- Option.scala
Unless a given condition is true, this will evaluate the a
argument and
return Some(a). Otherwise, a
is not evaluated and None is returned.
- Source
- Option.scala
When a given condition is true, evaluates the a
argument and returns
Some(a). When the condition is false, a
is not evaluated and None is
returned.
- Source
- Option.scala