basis

ElseOps

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

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

  5. final def asInstanceOf[T0]: T0

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

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

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

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

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

    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]

    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

    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

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

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

    Selects fused combinators that trap non-fatal exceptions.

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

    Selects fused combinators that trap exceptions with the given handler.

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

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

    Synonym for bindOrElse.

  16. final def isInstanceOf[T0]: Boolean

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

    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]

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

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

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

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

    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]

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

  22. def toString(): String

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

    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