final class TristateOps[A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TristateOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TristateOps(fa: Tristate[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val fa: Tristate[A]
  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def orEmpty(implicit A: Monoid[A]): A

    If the Tristate is Present, return its value.

    If the Tristate is Present, return its value. If the Tristate is Absent or Unspecified, return the empty value for Monoid[A].

  9. def toInvalid[B](b: ⇒ B): Validated[A, B]

    If the Tristate is Present, return its value in a cats.data.Validated.Invalid.

    If the Tristate is Present, return its value in a cats.data.Validated.Invalid. If the Tristate is Absent or Unspecified, return the provided B value in a cats.data.Validated.Valid.

  10. def toInvalidNel[B](b: ⇒ B): ValidatedNel[A, B]

    If the Tristate is Present, wrap its value in a cats.data.NonEmptyList and return it in a cats.data.Validated.Invalid.

    If the Tristate is Present, wrap its value in a cats.data.NonEmptyList and return it in a cats.data.Validated.Invalid. If the Tristate is Absent or Unspecified, return the provided B value in a cats.data.Validated.Valid.

  11. def toLeftIor[B](b: ⇒ B): Ior[A, B]

    If the Tristate is Present, return its value in a cats.data.Ior.Left.

    If the Tristate is Present, return its value in a cats.data.Ior.Left. If the Tristate is Absent or Unspecified, wrap the provided B value in a cats.data.Ior.Right.

  12. def toRightIor[B](b: ⇒ B): Ior[B, A]

    If the Tristate is Present, return its value in a cats.data.Ior.Right.

    If the Tristate is Present, return its value in a cats.data.Ior.Right. If the Tristate is Absent or Unspecified, wrap the provided B value in a cats.data.Ior.Left.

  13. def toString(): String
    Definition Classes
    Any
  14. def toValid[B](b: ⇒ B): Validated[B, A]

    If the Tristate is Present, return its value in a cats.data.Validated.Valid.

    If the Tristate is Present, return its value in a cats.data.Validated.Valid. If the Tristate is Absent or Unspecified, return the provided B value in a cats.data.Validated.Invalid.

  15. def toValidNel[B](b: ⇒ B): ValidatedNel[B, A]

    If the Tristate is Present, return its value in a cats.data.Validated.Valid.

    If the Tristate is Present, return its value in a cats.data.Validated.Valid. If the Tristate is Absent or Unspecified, wrap the provided B value in a cats.data.NonEmptyList and return the result in a cats.data.Validated.Invalid.

Inherited from AnyVal

Inherited from Any

Ungrouped