Object/Class

cats.data

Xor

Related Docs: class Xor | package data

Permalink

object Xor extends XorInstances with XorFunctions with Serializable

Linear Supertypes
Serializable, Serializable, XorFunctions, XorInstances, XorInstances1, XorInstances2, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Xor
  2. Serializable
  3. Serializable
  4. XorFunctions
  5. XorInstances
  6. XorInstances1
  7. XorInstances2
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class CatchOnlyPartiallyApplied[T] extends AnyRef

    Permalink
    Definition Classes
    XorFunctions
  2. final case class Left[+A](a: A) extends Xor[A, Nothing] with Product with Serializable

    Permalink
  3. final case class Right[+B](b: B) extends Xor[Nothing, B] with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def catchNonFatal[A](f: ⇒ A): Xor[Throwable, A]

    Permalink
    Definition Classes
    XorFunctions
  6. def catchOnly[T >: Null <: Throwable]: CatchOnlyPartiallyApplied[T]

    Permalink

    Evaluates the specified block, catching exceptions of the specified type and returning them on the left side of the resulting Xor.

    Evaluates the specified block, catching exceptions of the specified type and returning them on the left side of the resulting Xor. Uncaught exceptions are propagated.

    For example:

    scala> Xor.catchOnly[NumberFormatException] { "foo".toInt }
    res0: Xor[NumberFormatException, Int] = Left(java.lang.NumberFormatException: For input string: "foo")
    Definition Classes
    XorFunctions
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fromEither[A, B](e: Either[A, B]): Xor[A, B]

    Permalink

    Converts an Either[A, B] to an A Xor B.

    Converts an Either[A, B] to an A Xor B.

    Definition Classes
    XorFunctions
  12. def fromOption[A, B](o: Option[B], ifNone: ⇒ A): Xor[A, B]

    Permalink

    Converts an Option[B] to an A Xor B, where the provided ifNone values is returned on the left of the Xor when the specified Option is None.

    Converts an Option[B] to an A Xor B, where the provided ifNone values is returned on the left of the Xor when the specified Option is None.

    Definition Classes
    XorFunctions
  13. def fromTry[A](t: Try[A]): Xor[Throwable, A]

    Permalink

    Converts a Try[A] to a Throwable Xor A.

    Converts a Try[A] to a Throwable Xor A.

    Definition Classes
    XorFunctions
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def left[A, B](a: A): Xor[A, B]

    Permalink
    Definition Classes
    XorFunctions
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def right[A, B](b: B): Xor[A, B]

    Permalink
    Definition Classes
    XorFunctions
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. implicit val xorBitraverse: Bitraverse[Xor]

    Permalink
    Definition Classes
    XorInstances
  28. implicit def xorEq[A, B](implicit arg0: Eq[A], arg1: Eq[B]): Eq[Xor[A, B]]

    Permalink
    Definition Classes
    XorInstances2
  29. implicit def xorInstances[A]: Traverse[[β]Xor[A, β]] with MonadError[[β]Xor[A, β], A]

    Permalink
    Definition Classes
    XorInstances
  30. implicit def xorMonoid[A, B](implicit B: Monoid[B]): Monoid[Xor[A, B]]

    Permalink
    Definition Classes
    XorInstances
  31. implicit def xorOrder[A, B](implicit arg0: Order[A], arg1: Order[B]): Order[Xor[A, B]]

    Permalink
    Definition Classes
    XorInstances
  32. implicit def xorPartialOrder[A, B](implicit arg0: PartialOrder[A], arg1: PartialOrder[B]): PartialOrder[Xor[A, B]]

    Permalink
    Definition Classes
    XorInstances1
  33. implicit def xorSemigroup[A, B](implicit B: Semigroup[B]): Semigroup[Xor[A, B]]

    Permalink
    Definition Classes
    XorInstances1
  34. implicit def xorSemigroupK[L]: SemigroupK[[β]Xor[L, β]]

    Permalink
    Definition Classes
    XorInstances
  35. implicit def xorShow[A, B](implicit A: Show[A], B: Show[B]): Show[Xor[A, B]]

    Permalink
    Definition Classes
    XorInstances

Inherited from Serializable

Inherited from Serializable

Inherited from XorFunctions

Inherited from XorInstances

Inherited from XorInstances1

Inherited from XorInstances2

Inherited from AnyRef

Inherited from Any

Ungrouped