object Ior extends IorInstances with IorFunctions with IorFunctions2 with Serializable
- Source
- Ior.scala
- Alphabetic
- By Inheritance
- Ior
- Serializable
- Serializable
- IorFunctions2
- IorFunctions
- IorInstances
- IorInstances0
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
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
both[A, B](a: A, b: B): Ior[A, B]
- Definition Classes
- IorFunctions
-
def
bothNec[A, B](a: A, b: B): IorNec[A, B]
- Definition Classes
- IorFunctions2
-
def
bothNel[A, B](a: A, b: B): IorNel[A, B]
- Definition Classes
- IorFunctions
-
implicit
val
catsBitraverseForIor: Bitraverse[Ior]
- Definition Classes
- IorInstances
-
implicit
def
catsDataBifunctorForIor: Bifunctor[Ior]
- Definition Classes
- IorInstances
-
implicit
def
catsDataEqForIor[A, B](implicit arg0: Eq[A], arg1: Eq[B]): Eq[Ior[A, B]]
- Definition Classes
- IorInstances0
-
implicit
def
catsDataMonadErrorForIor[A](implicit arg0: Semigroup[A]): MonadError[[β$0$]Ior[A, β$0$], A]
- Definition Classes
- IorInstances
-
implicit
def
catsDataOrderForIor[A, B](implicit arg0: Order[A], arg1: Order[B]): Order[Ior[A, B]]
- Definition Classes
- IorInstances
-
implicit
def
catsDataParallelForIor[E](implicit E: Semigroup[E]): Aux[[β$2$]Ior[E, β$2$], [β$3$]Ior[E, β$3$]]
- Definition Classes
- IorInstances
-
implicit
def
catsDataSemigroupForIor[A, B](implicit arg0: Semigroup[A], arg1: Semigroup[B]): Semigroup[Ior[A, B]]
- Definition Classes
- IorInstances
-
implicit
def
catsDataShowForIor[A, B](implicit arg0: Show[A], arg1: Show[B]): Show[Ior[A, B]]
- Definition Classes
- IorInstances
-
implicit
def
catsDataTraverseFunctorForIor[A]: Traverse[[β$15$]Ior[A, β$15$]]
- Definition Classes
- IorInstances0
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fromEither[A, B](eab: Either[A, B]): Ior[A, B]
Create an
Ior
from anEither
.Create an
Ior
from anEither
.- eab
an
Either
from which theIor
should be created- returns
Ior.Left if the
Either
was aLeft
, or Ior.Right if theEither
was aRight
Example:scala> Ior.fromEither(Left(1)) res0: Ior[Int, Nothing] = Left(1) scala> Ior.fromEither(Right('1')) res1: Ior[Nothing, Char] = Right(1)
- Definition Classes
- IorFunctions
-
def
fromOptions[A, B](oa: Option[A], ob: Option[B]): Option[Ior[A, B]]
Create an
Ior
from two Options if at least one of them is defined.Create an
Ior
from two Options if at least one of them is defined.- oa
an element (optional) for the left side of the
Ior
- ob
an element (optional) for the right side of the
Ior
- returns
None
if bothoa
andob
areNone
. OtherwiseSome
wrapping an Ior.Left, Ior.Right, or Ior.Both ifoa
,ob
, or both are defined (respectively). Example:scala> Ior.fromOptions(Option.empty[String], Option.empty[Int]) res0: Option[Ior[String, Int]] = None scala> Ior.fromOptions(Option.empty[String], Some(42)) res1: Option[Ior[String, Int]] = Some(Right(42)) scala> Ior.fromOptions(Some("Error"), Option.empty[Int]) res2: Option[Ior[String, Int]] = Some(Left(Error)) scala> Ior.fromOptions(Some("Warning"), Some(42)) res3: Option[Ior[String, Int]] = Some(Both(Warning,42))
- Definition Classes
- IorFunctions
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
left[A, B](a: A): Ior[A, B]
- Definition Classes
- IorFunctions
-
def
leftNec[A, B](a: A): IorNec[A, B]
- Definition Classes
- IorFunctions2
-
def
leftNel[A, B](a: A): IorNel[A, B]
- Definition Classes
- IorFunctions
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
right[A, B](b: B): Ior[A, B]
- Definition Classes
- IorFunctions
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )