Class

basis

ElseOps

Related Doc: package basis

Permalink

final class ElseOps[+A, +B] extends AnyVal

Source
ElseOps.scala
Linear Supertypes
AnyVal, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. ElseOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ElseOps(__: Else[A, B])

    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. val __: Else[A, B]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. macro def bindOrElse[X >: A](default: ⇒ X): X

    Permalink

    Returns the value of this Bind, or the default value for a Trap.

  7. macro def exists(p: (A) ⇒ Boolean): Boolean

    Permalink

    Returns true if the value of this Bind satisfies the predicate, otherwise returns false.

  8. macro def filter(p: (A) ⇒ Boolean): Else[A, B]

    Permalink

    Returns this Bind if its value satisfies the predicate, returns the unit Trap if its value does not satisfy the predicate, otherwise returns this Trap.

  9. macro def flatMap[X, Y >: B](f: (A) ⇒ Else[X, Y]): Else[X, Y]

    Permalink

    Returns the binding of a function applied to the value of this Bind, otherwise returns this Trap.

  10. macro def fold[X](z: X)(f: (A) ⇒ X): X

    Permalink

    Apllies a function to the value of this Bind, or returns the zero value for a Trap; equivalent to map f bindOrElse z.

  11. macro def foreach[U](f: (A) ⇒ U): Unit

    Permalink

    Applies a function to the value of this Bind, otherwise does nothing.

  12. macro def fuse(implicit isTry: <:<[B, Throwable]): FuseOps[A, Throwable]

    Permalink

    Selects fused combinators that trap non-fatal exceptions.

  13. macro def fuse[Y >: B](trip: (Throwable) ⇒ Trap[Y]): FuseOps[A, Y]

    Permalink

    Selects fused combinators that trap exceptions with the given handler.

  14. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  15. macro def getOrElse[X >: A](default: ⇒ X): X

    Permalink

    Synonym for bindOrElse.

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. macro def map[X](f: (A) ⇒ X): Else[X, B]

    Permalink

    Binds the result of a function applied to the value of this Bind, otherwise returns this Trap.

  18. macro def orElse[X >: A, Y](other: Else[X, Y]): Else[X, Y]

    Permalink

    Returns this Bind, or the other binding for a Trap.

  19. macro def orNull[X >: A](implicit isNullable: <:<[Null, X]): X

    Permalink

    Returns the value of this Bind, or null for a Trap.

  20. macro def recover[X >: A](q: PartialFunction[B, X]): Else[X, B]

    Permalink

    Binds the result of a function applied to the value of this Trap, if defined, otherwise returns this.

  21. macro def recoverWith[X >: A, Y >: B](q: PartialFunction[B, Else[X, Y]]): Else[X, Y]

    Permalink

    Returns the binding of a function applied to the value of this Trap, if defined, otherwise returns this.

  22. def toString(): String

    Permalink
    Definition Classes
    Any
  23. macro def withFilter(p: (A) ⇒ Boolean): Else[A, B]

    Permalink

    Returns this Bind if its value satisfies the predicate, returns the unit Trap if its value does not satisfy the predicate, otherwise returns this Trap; equivalent to filter.

Inherited from AnyVal

Inherited from Any

Composing

Evaluating

Handling

Recovering

Ungrouped