scala

Left

class Left[+A, +B](a: A) extends Either[A, B] with Product

The left side of the disjoint union, as opposed to the Right side.

attributes: final
go to: companion
source: Either.scala
    version
  1. 1.0, 11/10/2008

    authors:
  1. Tony Morris, Workingmouse

Inherited
  1. Hide All
  2. Show all
  1. Product
  2. Equals
  3. Either
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new Left(a: A)

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. val a: A

  9. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  10. def canEqual(arg0: Any): Boolean

    A method that should be called from every well-designed equals method that is open to be overridden in a subclass.

  11. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  12. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  13. def equals(arg0: Any): Boolean

    The equality method defined in AnyRef.

  14. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  15. def fold[X](fa: (A) ⇒ X, fb: (B) ⇒ X): X

    Deconstruction of the Either type (in contrast to pattern matching).

  16. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  17. def hashCode(): Int

    Returns a hash code value for the object.

  18. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  19. def isLeft: Boolean

    Returns true if this is a Left, false otherwise.

  20. def isRight: Boolean

    Returns true if this is a Right, false otherwise.

  21. def joinLeft[A1 >: A, B1 >: B, C](implicit ev: <:<[A1, Either[C, B1]]): Either[C, B1]

    Joins an Either through Left.

  22. def joinRight[A1 >: A, B1 >: B, C](implicit ev: <:<[B1, Either[A1, C]]): Either[A1, C]

    Joins an Either through Right.

  23. def left: LeftProjection[A, B]

    Projects this Either as a Left.

  24. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  25. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  26. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  27. def productArity: Int

    return k for a product A(x_1,.

  28. def productElement(arg0: Int): Any

    For a product A(x_1,.

  29. def productElements: Iterator[Any]

  30. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  31. def productPrefix: String

    By default the empty string.

  32. def right: RightProjection[A, B]

    Projects this Either as a Right.

  33. def swap: Product with Either[B, A]

    If this is a Left, then return the left value in Right or vice versa.

  34. def synchronized[T0](arg0: T0): T0

  35. def toString(): String

    Returns a string representation of the object.

  36. def wait(): Unit

  37. def wait(arg0: Long, arg1: Int): Unit

  38. def wait(arg0: Long): Unit