scala

object Option

[source: scala/Option.scala]

object Option
extends AnyRef
Method Summary
def apply [A](x : A) : Option[A]
An Option factory which creates Some(value) if the argument is not null, and None if it is null.
implicit def option2Iterable [A](xo : Option[A]) : Iterable[A]
An implicit conversion that converts an option to an iterable value
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
implicit def option2Iterable[A](xo : Option[A]) : Iterable[A]
An implicit conversion that converts an option to an iterable value

def apply[A](x : A) : Option[A]
An Option factory which creates Some(value) if the argument is not null, and None if it is null.
Parameters
x - the value
Returns
Some(value) if value != null, None if value == null