Scala Standard Library 2.13.1 - scala.util.Either (original) (raw)
sealed abstract class Either[+A, +B] extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Either
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
by MergeableEither
by any2stringadd
by StringFormat
by Ensuring
by ArrowAssoc
Hide All
Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def canEqual(that: Any): Boolean
- abstract def isLeft: Boolean
- abstract def isRight: Boolean
- abstract def productArity: Int
- abstract def productElement(n: Int): Any
Concrete Value Members
- final def !=(arg0: Any): Boolean
- final def ##(): Int
- def +(other: String): String
- def ->[B](y: B): (Either[A, B], B)
- final def ==(arg0: Any): Boolean
- final def asInstanceOf[T0]: T0
- def clone(): AnyRef
- final def contains[B1 >: B](elem: B1): Boolean
- def ensuring(cond: (Either[A, B]) => Boolean, msg: => Any): Either[A, B]
- def ensuring(cond: (Either[A, B]) => Boolean): Either[A, B]
- def ensuring(cond: Boolean, msg: => Any): Either[A, B]
- def ensuring(cond: Boolean): Either[A, B]
- final def eq(arg0: AnyRef): Boolean
- def equals(arg0: AnyRef): Boolean
- def exists(p: (B) => Boolean): Boolean
- def filterOrElse[A1 >: A](p: (B) => Boolean, zero: => A1): Either[A1, B]
- def finalize(): Unit
- def flatMap[A1 >: A, B1](f: (B) => Either[A1, B1]): Either[A1, B1]
- def flatten[A1 >: A, B1](implicit ev: <:<[B, Either[A1, B1]]): Either[A1, B1]
- def fold[C](fa: (A) => C, fb: (B) => C): C
- def forall(f: (B) => Boolean): Boolean
- def foreach[U](f: (B) => U): Unit
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- def getOrElse[B1 >: B](or: => B1): B1
- def hashCode(): Int
- final def isInstanceOf[T0]: Boolean
- def joinLeft[A1 >: A, B1 >: B, C](implicit ev: <:<[A1, Either[C, B1]]): Either[C, B1]
- def joinRight[A1 >: A, B1 >: B, C](implicit ev: <:<[B1, Either[A1, C]]): Either[A1, C]
- def left: LeftProjection[A, B]
- def map[B1](f: (B) => B1): Either[A, B1]
- def merge: B
- final def ne(arg0: AnyRef): Boolean
- final def notify(): Unit
- final def notifyAll(): Unit
- def orElse[A1 >: A, B1 >: B](or: => Either[A1, B1]): Either[A1, B1]
- def productElementName(n: Int): String
- def productElementNames: Iterator[String]
- def productIterator: Iterator[Any]
- def productPrefix: String
- def swap: Either[B, A]
- final def synchronized[T0](arg0: => T0): T0
- def toOption: Option[B]
- def toSeq: collection.immutable.Seq[B]
- def toString(): String
- def toTry(implicit ev: <:<[A, Throwable]): Try[B]
- final def wait(): Unit
- final def wait(arg0: Long, arg1: Int): Unit
- final def wait(arg0: Long): Unit