Scala Library
|
|
scala/Option.scala
]
object
Option
extends
AnyRefMethod 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
|
implicit def
|
option2NullableOption [A <: AnyRef >: Null](xo : Option[A]) : NullableOption[A] |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
class
|
NullableOption
[A <: AnyRef >: Null](x : Option[A]) extends AnyRef
|
Method Details |
def
apply[A](x : A) : Option[A]
x -
the value
Scala Library
|
|