final class TristateOps[A] extends AnyVal
- Alphabetic
- By Inheritance
- TristateOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TristateOps(fa: Tristate[A])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val fa: Tristate[A]
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
orEmpty(implicit A: Monoid[A]): A
If the
TristateisPresent, return its value.If the
TristateisPresent, return its value. If theTristateisAbsentorUnspecified, return theMonoid[A]emptyvalue for. -
def
toInvalid[B](b: ⇒ B): Validated[A, B]
If the
TristateisPresent, return its value in a cats.data.Validated.Invalid.If the
TristateisPresent, return its value in a cats.data.Validated.Invalid. If theTristateisAbsentorUnspecified, return the providedBvalue in a cats.data.Validated.Valid. -
def
toInvalidNel[B](b: ⇒ B): ValidatedNel[A, B]
If the
TristateisPresent, wrap its value in a cats.data.NonEmptyList and return it in a cats.data.Validated.Invalid.If the
TristateisPresent, wrap its value in a cats.data.NonEmptyList and return it in a cats.data.Validated.Invalid. If theTristateisAbsentorUnspecified, return the providedBvalue in a cats.data.Validated.Valid. -
def
toLeftIor[B](b: ⇒ B): Ior[A, B]
If the
TristateisPresent, return its value in a cats.data.Ior.Left.If the
TristateisPresent, return its value in a cats.data.Ior.Left. If theTristateisAbsentorUnspecified, wrap the providedBvalue in a cats.data.Ior.Right. -
def
toRightIor[B](b: ⇒ B): Ior[B, A]
If the
TristateisPresent, return its value in a cats.data.Ior.Right.If the
TristateisPresent, return its value in a cats.data.Ior.Right. If theTristateisAbsentorUnspecified, wrap the providedBvalue in a cats.data.Ior.Left. -
def
toString(): String
- Definition Classes
- Any
-
def
toValid[B](b: ⇒ B): Validated[B, A]
If the
TristateisPresent, return its value in a cats.data.Validated.Valid.If the
TristateisPresent, return its value in a cats.data.Validated.Valid. If theTristateisAbsentorUnspecified, return the providedBvalue in a cats.data.Validated.Invalid. -
def
toValidNel[B](b: ⇒ B): ValidatedNel[B, A]
If the
TristateisPresent, return its value in a cats.data.Validated.Valid.If the
TristateisPresent, return its value in a cats.data.Validated.Valid. If theTristateisAbsentorUnspecified, wrap the providedBvalue in a cats.data.NonEmptyList and return the result in a cats.data.Validated.Invalid.