scala.Option

class NullableOption

[source: scala/Option.scala]

class NullableOption[A <: AnyRef >: Null](x : Option[A])
extends AnyRef
Method Summary
def orNull : A
The option's value if it is nonempty, or null if it is empty. The use of null of course is discouraged, but code written to use Options often must interface with code which expects and returns nulls.
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
@experimental

def orNull : A
The option's value if it is nonempty, or null if it is empty. The use of null of course is discouraged, but code written to use Options often must interface with code which expects and returns nulls.