Class

org.davidbild.tristate.contrib.cats

TristateOps

Related Doc: package cats

Permalink

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])

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. val fa: Tristate[A]

    Permalink
  6. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def orEmpty(implicit A: Monoid[A]): A

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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

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

    Permalink

    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]

    Permalink

    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