in scala
class Option

`sealed abstract class` Option [A]
  `extends` java.lang.Object
  `with` scala.Iterable[A]
  `with` scala.ScalaObject

  This class represents optional values. Instances of `Option` are either instances of case class `Some` or it is case object `None`.

Author:
  Martin Odersky
Author:
  Matthias Zenger
Version:
  1.0, 16/07/2003

Direct Known Subclasses:
  Some, None

Constructor Summary
| `def` this

Def Summary
| `def` elements : scala.Iterator[A]
| `def` filter (p: scala.Function1[A, scala.Boolean]) : scala.Option[A]
| `def` flatMap [B] (f: scala.Function1[A, scala.Option[B]]) : scala.Option[B]
`override` | `def` foreach (f: scala.Function1[A, scala.Unit]) : scala.Unit
| `def` get : A
| `def` get [A <: B] (default: B) : B
| `def` isEmpty : scala.Boolean
| `def` map [B] (f: scala.Function1[A, B]) : scala.Option[B]
`override` | `def` toList : scala.List[A]

Constructor Detail

`def` this

Def Detail

`def` elements : scala.Iterator[A]

`def` filter (p: scala.Function1[A, scala.Boolean]): scala.Option[A]

`def` flatMap [B](f: scala.Function1[A, scala.Option[B]]): scala.Option[B]

`override def` foreach (f: scala.Function1[A, scala.Unit]): scala.Unit

`def` get : A

Throws:
  `Predef -` .NoSuchElementException

`def` get [A <: B](default: B): B

`def` isEmpty : scala.Boolean

`def` map [B](f: scala.Function1[A, B]): scala.Option[B]

`override def` toList : scala.List[A]