implicit final class RightBiasedEither[A, B] extends AnyVal

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

Instance Constructors

  1. new RightBiasedEither(v: Either[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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def get: B

    Get the value, fail with an assertion if this is an error.

  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def orThrow: B

    Get the right value of an Either by throwing a potential error message.

    Get the right value of an Either by throwing a potential error message. Can simplify the implementation of methods that act on multiple Either instances. Instead of flat-mapping, the first error can be collected as

    tryEither { eitherOne.orThrow .... eitherTwo.orThrow ... eitherThree.orThrow }

  9. def toString(): String
    Definition Classes
    Any
  10. val v: Either[A, B]
  11. def withFilter(f: (B) ⇒ Boolean)(implicit empty: A): Either[A, B]

Inherited from AnyVal

Inherited from Any

Ungrouped