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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Either
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: AnyRef): Boolean
- Definition Classes
- Either → AnyRef → Any
- Annotations
- @Override()
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap[R1](f: F1[R, Either[L, R1]]): Either[L, R1]
- def fold[C](l: F1[L, C], r: F1[R, C]): C
- def foreach(f: Procedure1[_ >: R <: AnyRef]): Unit
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getOrElse(t: R): R
- def getOrElseF(f: F0[R]): R
- def hashCode(): Int
- Definition Classes
- Either → AnyRef → Any
- Annotations
- @Override()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLeft(): Boolean
- def isRight(): Boolean
- def left(): L
- def leftOption(): Optional[L]
- def leftTry(): Try[L]
- def map[R1](f: F1[R, R1]): Either[L, R1]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def orElse(or: Either[L, R]): Either[L, R]
- def orElseF(or: F0[Either[L, R]]): Either[L, R]
- def right(): R
- def rightOption(): Optional[R]
- def rightTry(): Try[R]
- def swap(): Either[R, L]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toList(): List[R]
- def toString(): String
- Definition Classes
- Either → AnyRef → Any
- Annotations
- @Override()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()