implicit final class RightBiasedEither[A, B] extends AnyVal

Source
BackendReporting.scala
Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RightBiasedEither
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RightBiasedEither(v: Either[A, B])

Value Members

  1. def get: B

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

  2. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  3. 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 }

  4. val v: Either[A, B]
  5. def withFilter(f: (B) ⇒ Boolean)(implicit empty: A): Either[A, B]