Class

sutils.std.ImplicitOptionOps

AddSideEffectOpToOption

Related Doc: package ImplicitOptionOps

Permalink

implicit final class AddSideEffectOpToOption[T] extends AnyVal

Evaluates side effecting functions, values on the Some() and None cases.

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

Instance Constructors

  1. new AddSideEffectOpToOption(x: Option[T])

    Permalink

Value Members

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

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def sideEffectOnly(ifSome: (T) ⇒ Unit): Option[T]

    Permalink

    Evaluates the parameter on the inner value when the Option is Some(_).

  8. def sideEffectOnly(ifNone: ⇒ Unit): Option[T]

    Permalink

    Evaluates the parameter when the Option is None.

  9. def sideEffectOnly(ifNone: ⇒ Unit, ifSome: (T) ⇒ Unit): Option[T]

    Permalink

    Evaluates one of the two statements, depending on the case of the Option.

    Evaluates one of the two statements, depending on the case of the Option. Performs fold(ifNone, ifSome) and then evaluates to the wrapped Option.

  10. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped