akka.japi

Option

sealed abstract class Option[A] extends Iterable[A]

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

Source
JavaAPI.scala
Linear Supertypes
Iterable[A], AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Option
  2. Iterable
  3. AnyRef
  4. Any
Implicitly
  1. by java2ScalaOption
  2. by any2stringadd
  3. by any2stringfmt
  4. by any2ArrowAssoc
  5. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Option()

Abstract Value Members

  1. abstract def asScala: scala.Option[A]

  2. abstract def get: A

  3. abstract def getOrElse[B >: A](defaultValue: B): B

    Returns a if this is some(a) or defaultValue if this is none.

    Returns a if this is some(a) or defaultValue if this is none.

  4. abstract def isEmpty: Boolean

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Option[A] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Option[A], B)

    Implicit information
    This member is added by an implicit conversion from Option[A] to ArrowAssoc[Option[A]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def canEqual(that: Any): Boolean

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Equals
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def collect[B](pf: PartialFunction[A, B]): scala.Option[B]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  12. def ensuring(cond: (Option[A]) ⇒ Boolean, msg: ⇒ Any): Option[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to Ensuring[Option[A]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (Option[A]) ⇒ Boolean): Option[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to Ensuring[Option[A]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): Option[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to Ensuring[Option[A]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): Option[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to Ensuring[Option[A]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. final def exists(p: (A) ⇒ Boolean): Boolean

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  19. final def filter(p: (A) ⇒ Boolean): scala.Option[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  20. final def filterNot(p: (A) ⇒ Boolean): scala.Option[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def flatMap[B](f: (A) ⇒ scala.Option[B]): scala.Option[B]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  23. def flatten[B](implicit ev: <:<[A, scala.Option[B]]): scala.Option[B]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
  24. final def fold[B](ifEmpty: ⇒ B)(f: (A) ⇒ B): B

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  25. final def forall(p: (A) ⇒ Boolean): Boolean

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  26. final def foreach[U](f: (A) ⇒ U): Unit

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  27. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Option[A] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  30. def isDefined: Boolean

  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def iterator(): Iterator[A]

    Definition Classes
    Option → Iterable
  33. final def map[B](f: (A) ⇒ B): scala.Option[B]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. final def nonEmpty: Boolean

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. final def orElse[B >: A](alternative: ⇒ scala.Option[B]): scala.Option[B]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  39. final def orNull[A1 >: A](implicit ev: <:<[Null, A1]): A1

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  40. def productArity: Int

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Product
  41. def productElement(n: Int): Any

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Product
  42. def productIterator: Iterator[Any]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Product
  43. def productPrefix: String

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Product
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. final def toLeft[X](right: ⇒ X): Serializable with Product with Either[A, X]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  46. def toList: List[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
  47. final def toRight[X](left: ⇒ X): Serializable with Product with Either[X, A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  48. def toString(): String

    Definition Classes
    AnyRef → Any
  49. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def withFilter(p: (A) ⇒ Boolean): WithFilter

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Definition Classes
    Option
    Annotations
    @inline()
  53. def [B](y: B): (Option[A], B)

    Implicit information
    This member is added by an implicit conversion from Option[A] to ArrowAssoc[Option[A]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def get: A

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (option: scala.Option[A]).get
    Definition Classes
    Option
  2. final def getOrElse[B >: A](default: ⇒ B): B

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (option: scala.Option[A]).getOrElse(default)
    Definition Classes
    Option
    Annotations
    @inline()
  3. def isDefined: Boolean

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (option: scala.Option[A]).isDefined
    Definition Classes
    Option
  4. def isEmpty: Boolean

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (option: scala.Option[A]).isEmpty
    Definition Classes
    Option
  5. def iterator: Iterator[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to scala.Option[A] performed by method java2ScalaOption in akka.japi.Option.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (option: scala.Option[A]).iterator
    Definition Classes
    Option
  6. val self: Any

    Implicit information
    This member is added by an implicit conversion from Option[A] to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (option: StringAdd).self
    Definition Classes
    StringAdd
  7. val self: Any

    Implicit information
    This member is added by an implicit conversion from Option[A] to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (option: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: Option[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to ArrowAssoc[Option[A]] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (option: ArrowAssoc[Option[A]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Option[A]

    Implicit information
    This member is added by an implicit conversion from Option[A] to Ensuring[Option[A]] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (option: Ensuring[Option[A]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Iterable[A]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion java2ScalaOption from Option[A] to scala.Option[A]

Inherited by implicit conversion any2stringadd from Option[A] to StringAdd

Inherited by implicit conversion any2stringfmt from Option[A] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Option[A] to ArrowAssoc[Option[A]]

Inherited by implicit conversion any2Ensuring from Option[A] to Ensuring[Option[A]]

Ungrouped