Packages

implicit final class ExtraRichOption[A] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExtraRichOption
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExtraRichOption(opt: Option[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. def invert[B](ifEmpty: ⇒ B): Option[B]

    Returns an Option containing the specified value if this Option is empty, or an empty Option if this Option is defined.

    Returns an Option containing the specified value if this Option is empty, or an empty Option if this Option is defined.

    B

    the type of the returned Option

    ifEmpty

    the value to use if this Option is empty

    returns

    an Option containing the specified the specified value if this Option is empty, or an empty Option if this Option is defined

  12. def invertWith[B](ifEmpty: ⇒ Option[B]): Option[B]

    Returns the specified Option if this Option is empty, or an empty Option if this Option is defined.

    Returns the specified Option if this Option is empty, or an empty Option if this Option is defined.

    B

    the type of the returned Option

    ifEmpty

    the option to return if this Option is empty

    returns

    the specified Option if this Option is empty, or an empty Option if this Option is defined

  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toFuture: Future[A]

    Returns a completed Future from this Option.

    Returns a completed Future from this Option.

    The Future returned:

    • succeeds with the value of this Option if this Option is defined
    • fails with a NoSuchElementException if this Option is empty
    returns

    a completed Future from this Option

  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. def transform[B](ifDefined: (A) ⇒ Option[B], ifEmpty: ⇒ Option[B]): Option[B]

    Returns an Option by applying ifDefined to the value of this Option if this Option is defined, or ifEmpty if this Option is empty.

    Returns an Option by applying ifDefined to the value of this Option if this Option is defined, or ifEmpty if this Option is empty.

    B

    the type of the Option returned

    ifDefined

    a function to apply to the value of this Option if it is defined

    ifEmpty

    an Option to return if this Option is empty

    returns

    an Option by applying ifDefined to the value of this Option if this Option is defined, or ifEmpty if this Option is empty

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

Inherited from AnyRef

Inherited from Any

Ungrouped