|
|
Scala 2.3.1
|
sealed abstract
class
Option
[A]
extends java.lang.Object
with scala.Iterable[A]
with scala.Product
with scala.ScalaObject
Option
are either instances of case class Some or it is case
object None.| Constructor Summary | |
def
this
|
|
| Def Summary | |
def
elements
: scala.Iterator[A]
|
|
def
filter
(p: (A) => scala.Boolean)
: scala.Option[A]
|
|
def
flatMap
[B]
(f: (A) => scala.Option[B])
: scala.Option[B]
|
|
override
|
def
foreach
(f: (A) => scala.Unit)
: scala.Unit
|
def
get
: A
|
|
def
get
[B >: A]
(default: B)
: B
|
|
def
isEmpty
: scala.Boolean
|
|
def
map
[B]
(f: (A) => B)
: scala.Option[B]
|
|
override
|
def
toList
: scala.List[A]
|
| Def inherited from scala.Iterable[A] | |
| /: , :\, concat, elements, exists, find, findIndexOf, foldLeft, foldRight, forall, foreach, indexOf, sameElements, toList |
| Def inherited from scala.Product | |
| arity , element, productPrefix |
| Constructor Detail |
| Def Detail |
def
elements
: scala.Iterator[A]
def
filter
(p: (A) => scala.Boolean): scala.Option[A]
def
flatMap
[B](f: (A) => scala.Option[B]): scala.Option[B]
override
def
foreach
(f: (A) => scala.Unit): scala.Unit
def
get
: A
Predef.NoSuchElementException -
def
isEmpty
: scala.Boolean
def
map
[B](f: (A) => B): scala.Option[B]
override
def
toList
: scala.List[A]