Packages

c

scail.commons.ops

OptionOps

implicit final class OptionOps[A] extends AnyVal

Extension methods for Option[A].

Source
ops.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptionOps
  2. AnyVal
  3. Any
Implicitly
  1. by AnyOps
  2. by AnyOps
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OptionOps(value: Option[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from OptionOps[A] to any2stringadd[OptionOps[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (OptionOps[A], B)
    Implicit
    This member is added by an implicit conversion from OptionOps[A] to ArrowAssoc[OptionOps[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def ensuring(cond: (OptionOps[A]) ⇒ Boolean, msg: ⇒ Any): OptionOps[A]
    Implicit
    This member is added by an implicit conversion from OptionOps[A] to Ensuring[OptionOps[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (OptionOps[A]) ⇒ Boolean): OptionOps[A]
    Implicit
    This member is added by an implicit conversion from OptionOps[A] to Ensuring[OptionOps[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: ⇒ Any): OptionOps[A]
    Implicit
    This member is added by an implicit conversion from OptionOps[A] to Ensuring[OptionOps[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): OptionOps[A]
    Implicit
    This member is added by an implicit conversion from OptionOps[A] to Ensuring[OptionOps[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def forNone(f: ⇒ Unit): Unit

    Executes side-effectful procedure f if value is empty, do nothing otherwise.

    Executes side-effectful procedure f if value is empty, do nothing otherwise.

    f

    the side-effectful procedure to execute

    Annotations
    @inline()
  12. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from OptionOps[A] to StringFormat[OptionOps[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  13. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def orEmpty(implicit ev: DefaultValue[A]): A

    Returns the option's value if nonempty, otherwise return a default "empty" value.

    Returns the option's value if nonempty, otherwise return a default "empty" value.

    returns

    the option's value if nonempty, a default empty value otherwise

  16. def toString(): String
    Definition Classes
    Any
  17. def [B](y: B): (OptionOps[A], B)
    Implicit
    This member is added by an implicit conversion from OptionOps[A] to ArrowAssoc[OptionOps[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def future: Future[OptionOps[A]]

    Creates an already completed Future containing value.

    Creates an already completed Future containing value.

    returns

    the already completed Future with the specified result

    Implicit
    This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
    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:
    (optionOps: AnyOps[OptionOps[A]]).future
    Definition Classes
    AnyOps
    Annotations
    @inline()
  2. def future: Future[OptionOps[A]]

    Creates an already completed Future containing value.

    Creates an already completed Future containing value.

    returns

    the already completed Future with the specified result

    Implicit
    This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
    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:
    (optionOps: AnyOps[OptionOps[A]]).future
    Definition Classes
    AnyOps
    Annotations
    @inline()
  3. def option: Option[OptionOps[A]]

    Creates an Option containing value.

    Creates an Option containing value.

    returns

    Some(value) if value is not null, None otherwise

    Implicit
    This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
    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:
    (optionOps: AnyOps[OptionOps[A]]).option
    Definition Classes
    AnyOps
    Annotations
    @inline()
  4. def option: Option[OptionOps[A]]

    Creates an Option containing value.

    Creates an Option containing value.

    returns

    Some(value) if value is not null, None otherwise

    Implicit
    This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
    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:
    (optionOps: AnyOps[OptionOps[A]]).option
    Definition Classes
    AnyOps
    Annotations
    @inline()
  5. def tap(f: (OptionOps[A]) ⇒ Unit): OptionOps[A]

    Applies side-effectul method to value, returning value.

    Applies side-effectul method to value, returning value.

    f

    the side-effectful method to apply to value

    returns

    value

    Implicit
    This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
    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:
    (optionOps: AnyOps[OptionOps[A]]).tap(f)
    Definition Classes
    AnyOps
  6. def tap(f: (OptionOps[A]) ⇒ Unit): OptionOps[A]

    Applies side-effectul method to value, returning value.

    Applies side-effectul method to value, returning value.

    f

    the side-effectful method to apply to value

    returns

    value

    Implicit
    This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
    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:
    (optionOps: AnyOps[OptionOps[A]]).tap(f)
    Definition Classes
    AnyOps

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion AnyOps from OptionOps[A] to AnyOps[OptionOps[A]]

Inherited by implicit conversion AnyOps from OptionOps[A] to AnyOps[OptionOps[A]]

Inherited by implicit conversion any2stringadd from OptionOps[A] to any2stringadd[OptionOps[A]]

Inherited by implicit conversion StringFormat from OptionOps[A] to StringFormat[OptionOps[A]]

Inherited by implicit conversion Ensuring from OptionOps[A] to Ensuring[OptionOps[A]]

Inherited by implicit conversion ArrowAssoc from OptionOps[A] to ArrowAssoc[OptionOps[A]]

Ungrouped