scala.Either

LeftProjection

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

Projects an Either into a Left.

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. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new LeftProjection(e: Either[A, B])

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. def asInstanceOf[T0]: T0

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

  9. 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.

  10. def clone(): AnyRef

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

  11. val e: Either[A, B]

  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 exists(f: (A) ⇒ Boolean): Boolean

    Returns false if Right or returns the result of the application of the given function to the Left value.

  15. def filter[Y](p: (A) ⇒ Boolean): Option[Either[A, Y]]

    Returns None if this is a Right or if the given predicatep does not hold for the left value, otherwise, returns a Left.

  16. 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.

  17. def flatMap[BB >: B, X](f: (A) ⇒ Either[X, BB]): Either[X, BB]

    Binds the given function across Left.

  18. def forall(f: (A) ⇒ Boolean): Boolean

    Returns true if Right or returns the result of the application of the given function to the Left value.

  19. def foreach[U](f: (A) ⇒ U): Any

    Executes the given side-effect if this is a Left.

  20. def get: A

    Returns the value from this Left or throws Predef.

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

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

  22. def getOrElse[AA >: A](or: ⇒ AA): AA

    Returns the value from this Left or the given argument if this is aRight.

  23. def hashCode(): Int

    Returns a hash code value for the object.

  24. def isInstanceOf[T0]: Boolean

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

  25. def map[X](f: (A) ⇒ X): Product with Either[X, B]

    Maps the function argument through Left.

  26. def ne(arg0: AnyRef): Boolean

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

  27. def notify(): Unit

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

  28. def notifyAll(): Unit

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

  29. def productArity: Int

    return k for a product A(x_1,.

  30. def productElement(arg0: Int): Any

    For a product A(x_1,.

  31. def productElements: Iterator[Any]

  32. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  33. def productPrefix: String

    By default the empty string.

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

  35. def toOption: Option[A]

    Returns a Some containing the Left value if it exists or aNone if this is a Right.

  36. def toSeq: Seq[A]

    Returns a Seq containing the Left value if it exists or an emptySeq if this is a Right.

  37. def toString(): String

    Returns a string representation of the object.

  38. def wait(): Unit

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

  40. def wait(arg0: Long): Unit