final
class
EitherOps[A, B] extends AnyVal
Instance Constructors
-
new
EitherOps(eab: Either[A, B])
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
ap[AA >: A, BB >: B, C](that: Either[AA, (BB) ⇒ C]): Either[AA, C]
-
final
def
append[AA >: A, BB >: B](that: Either[AA, BB])(implicit BB: Semigroup[BB]): Either[AA, BB]
-
final
def
asInstanceOf[T0]: T0
-
def
bimap[C, D](fa: (A) ⇒ C, fb: (B) ⇒ D): Either[C, D]
-
val
eab: Either[A, B]
-
def
ensure[AA >: A](onFailure: ⇒ AA)(f: (B) ⇒ Boolean): Either[AA, B]
-
def
exists(f: (B) ⇒ Boolean): Boolean
-
def
flatMap[AA >: A, D](f: (B) ⇒ Either[AA, D]): Either[AA, D]
-
def
foldLeft[C](c: C)(f: (C, B) ⇒ C): C
-
def
forall(f: (B) ⇒ Boolean): Boolean
-
def
foreach(f: (B) ⇒ Unit): Unit
-
def
getClass(): Class[_ <: AnyVal]
-
def
getOrElse[BB >: B](default: ⇒ BB): BB
-
final
def
isInstanceOf[T0]: Boolean
-
def
leftMap[C](f: (A) ⇒ C): Either[C, B]
-
def
map[C](f: (B) ⇒ C): Either[A, C]
-
def
orElse[C, BB >: B](fallback: ⇒ Either[C, BB]): Either[C, BB]
-
def
recover[BB >: B](pf: PartialFunction[A, BB]): Either[A, BB]
-
def
recoverWith[AA >: A, BB >: B](pf: PartialFunction[A, Either[AA, BB]]): Either[AA, BB]
-
def
show[AA >: A, BB >: B](implicit AA: Show[AA], BB: Show[BB]): String
-
def
toList: List[B]
-
def
toOption: Option[B]
-
def
toString(): String
-
def
toTry(implicit ev: <:<[A, Throwable]): Try[B]
-
def
traverse[F[_], AA >: A, D](f: (B) ⇒ F[D])(implicit F: Applicative[F]): F[Either[AA, D]]
-
def
valueOr[BB >: B](f: (A) ⇒ BB): BB
Inherited from AnyVal
Inherited from Any