com.paypal.cascade.common

either

package either

Convenience methods and implicits for working with scala.util.Either.

When working with Either, our convention is to right-bias correct values. That is, when working with an Either, prefer to use Either[Failure, Success] as the pattern.

Additionally, strongly prefer to use scala.util.Try over Either whenever a failure case is to be a Throwable. In general practice, this should encompass the vast majority of cases.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. either
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class AnyEitherToTry[E, A] extends AnyRef

    Implicit wrapper to convert arbitrary Either objects to scala.util.Try, right-biasing

  2. implicit class EitherOps[A] extends AnyRef

    Implicit wrapper to convert regular objects to scala.util.Either

  3. implicit class ThrowableEitherToTry[A] extends AnyRef

    Implicit wrapper to convert Either[Throwable, A] objects to scala.util.Try, right-biasing

Inherited from AnyRef

Inherited from Any

Ungrouped