Packages

final class Either[L, R] extends Serializable

Value class representing exactly one of two options, left or right.

This class is immutable and thus threadsafe.

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Either
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(obj: AnyRef): Boolean
    Definition Classes
    Either → AnyRef → Any
    Annotations
    @Override()
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. def flatMap[R1](f: F1[R, Either[L, R1]]): Either[L, R1]
  10. def fold[C](l: F1[L, C], r: F1[R, C]): C
  11. def foreach(f: Procedure1[_ >: R <: AnyRef]): Unit
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getOrElse(t: R): R
  14. def getOrElseF(f: F0[R]): R
  15. def hashCode(): Int
    Definition Classes
    Either → AnyRef → Any
    Annotations
    @Override()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isLeft(): Boolean
  18. def isRight(): Boolean
  19. def left(): L
  20. def leftOption(): Optional[L]
  21. def leftTry(): Try[L]
  22. def map[R1](f: F1[R, R1]): Either[L, R1]
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def orElse(or: Either[L, R]): Either[L, R]
  27. def orElseF(or: F0[Either[L, R]]): Either[L, R]
  28. def right(): R
  29. def rightOption(): Optional[R]
  30. def rightTry(): Try[R]
  31. def swap(): Either[R, L]
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toList(): List[R]
  34. def toString(): String
    Definition Classes
    Either → AnyRef → Any
    Annotations
    @Override()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped