Scala Library
|
|
scala/Option.scala
]
class
NullableOption[A <: AnyRef >: Null](x : Option[A])
extends
AnyRefMethod 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 |
def
orNull : A
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.
Scala Library
|
|