c

com.nthportal

ExtraRichOption

implicit final class ExtraRichOption[A] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExtraRichOption
  2. AnyVal
  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
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. 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

  7. 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

  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. 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

  10. def toString(): String
    Definition Classes
    Any
  11. 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

Inherited from AnyVal

Inherited from Any

Ungrouped