scala

Either

object Either extends AnyRef

Inherits

  1. AnyRef
  2. Any

Type Members

  1. class LeftProjection[+A, +B](e: Either[A, B]) extends Product

    Projects an Either into a Left

  2. class MergeableEither[A] extends AnyRef

  3. class RightProjection[+A, +B](e: Either[A, B]) extends Product

    Projects an Either into a Right

Value Members

  1. def cond[A, B](test: Boolean, right: ⇒ B, left: ⇒ A): Either[A, B]

    If the condition satisfies, return the given A in Left, otherwise, return the given B in Right

  2. def either2mergeable[A](x: Either[A, A]): MergeableEither[A]

  3. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  4. def hashCode(): Int

    Returns a hash code value for the object

  5. def joinLeft[A, B](es: Either[Either[A, B], B]): Either[A, B]

  6. def joinRight[A, B](es: Either[A, Either[A, B]]): Either[A, B]

  7. def merge[T](e: Either[T, T]): T

    Takes an Either to its contained value within Left or Right

  8. def toString(): String

    Returns a string representation of the object