Class

cats.data.Validated

Invalid

Related Doc: package Validated

Permalink

final case class Invalid[+E](e: E) extends Validated[E, Nothing] with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Invalid
  2. Validated
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Invalid(e: E)

    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. def ===[EE >: E, AA >: Nothing](that: Validated[EE, AA])(implicit EE: Eq[EE], AA: Eq[AA]): Boolean

    Permalink
    Definition Classes
    Validated
  5. def ap[EE >: E, B](f: Validated[EE, (Nothing) ⇒ B])(implicit EE: Semigroup[EE]): Validated[EE, B]

    Permalink

    From Apply: if both the function and this value are Valid, apply the function

    From Apply: if both the function and this value are Valid, apply the function

    Definition Classes
    Validated
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def bimap[EE, AA](fe: (E) ⇒ EE, fa: (Nothing) ⇒ AA): Validated[EE, AA]

    Permalink

    Validated is a functor.Bifunctor, this method applies one of the given functions.

    Validated is a functor.Bifunctor, this method applies one of the given functions.

    Definition Classes
    Validated
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compare[EE >: E, AA >: Nothing](that: Validated[EE, AA])(implicit EE: Order[EE], AA: Order[AA]): Int

    Permalink
    Definition Classes
    Validated
  10. val e: E

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def exists(predicate: (Nothing) ⇒ Boolean): Boolean

    Permalink

    Is this Valid and matching the given predicate

    Is this Valid and matching the given predicate

    Definition Classes
    Validated
  13. def filter[EE >: E](pred: (Nothing) ⇒ Boolean)(implicit M: Monoid[EE]): Validated[EE, Nothing]

    Permalink

    If the value is Valid but the predicate fails, return an empty Invalid value, otherwise leaves the value unchanged.

    If the value is Valid but the predicate fails, return an empty Invalid value, otherwise leaves the value unchanged. This method is mostly useful for allowing validated values to be used in a for comprehension with pattern matching.

    Definition Classes
    Validated
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fold[B](fe: (E) ⇒ B, fa: (Nothing) ⇒ B): B

    Permalink
    Definition Classes
    Validated
  16. def foldLeft[B](b: B)(f: (B, Nothing) ⇒ B): B

    Permalink

    apply the given function to the value with the given B when valid, otherwise return the given B

    apply the given function to the value with the given B when valid, otherwise return the given B

    Definition Classes
    Validated
  17. def foldRight[B](lb: Eval[B])(f: (Nothing, Eval[B]) ⇒ Eval[B]): Eval[B]

    Permalink

    Lazily-apply the given function to the value with the given B when valid, otherwise return the given B.

    Lazily-apply the given function to the value with the given B when valid, otherwise return the given B.

    Definition Classes
    Validated
  18. def forall(f: (Nothing) ⇒ Boolean): Boolean

    Permalink

    Is this Invalid or matching the predicate

    Is this Invalid or matching the predicate

    Definition Classes
    Validated
  19. def foreach(f: (Nothing) ⇒ Unit): Unit

    Permalink

    Run the side-effecting function on the value if it is Valid

    Run the side-effecting function on the value if it is Valid

    Definition Classes
    Validated
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getOrElse[B >: Nothing](default: ⇒ B): B

    Permalink

    Return the Valid value, or the default if Invalid

    Return the Valid value, or the default if Invalid

    Definition Classes
    Validated
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isInvalid: Boolean

    Permalink
    Definition Classes
    Validated
  24. def isValid: Boolean

    Permalink
    Definition Classes
    Validated
  25. def map[B](f: (Nothing) ⇒ B): Validated[E, B]

    Permalink

    Apply a function to a Valid value, returning a new Valid value

    Apply a function to a Valid value, returning a new Valid value

    Definition Classes
    Validated
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. def orElse[EE, AA >: Nothing](default: ⇒ Validated[EE, AA]): Validated[EE, AA]

    Permalink

    Return this if it is Valid, or else fall back to the given default.

    Return this if it is Valid, or else fall back to the given default.

    Definition Classes
    Validated
  30. def partialCompare[EE >: E, AA >: Nothing](that: Validated[EE, AA])(implicit EE: PartialOrder[EE], AA: PartialOrder[AA]): Double

    Permalink
    Definition Classes
    Validated
  31. def show[EE >: E, AA >: Nothing](implicit EE: Show[EE], AA: Show[AA]): String

    Permalink
    Definition Classes
    Validated
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toEither: Either[E, Nothing]

    Permalink

    Converts the value to an Either[E,A]

    Converts the value to an Either[E,A]

    Definition Classes
    Validated
  34. def toList: List[Nothing]

    Permalink

    Convert this value to a single element List if it is Valid, otherwise return an empty List

    Convert this value to a single element List if it is Valid, otherwise return an empty List

    Definition Classes
    Validated
  35. def toOption: Option[Nothing]

    Permalink

    Returns Valid values wrapped in Some, and None for Invalid values

    Returns Valid values wrapped in Some, and None for Invalid values

    Definition Classes
    Validated
  36. def toValidatedNel[EE >: E, AA >: Nothing]: ValidatedNel[EE, AA]

    Permalink

    Lift the Invalid value into a NonEmptyList.

    Lift the Invalid value into a NonEmptyList.

    Definition Classes
    Validated
  37. def toXor: Xor[E, Nothing]

    Permalink

    Convert this value to RightOr if Valid or LeftOr if Invalid

    Convert this value to RightOr if Valid or LeftOr if Invalid

    Definition Classes
    Validated
  38. def traverse[F[_], EE >: E, B](f: (Nothing) ⇒ F[B])(implicit F: Applicative[F]): F[Validated[EE, B]]

    Permalink

    When Valid, apply the function, marking the result as valid inside the Applicative's context, when Invalid, lift the Error into the Applicative's contexst

    When Valid, apply the function, marking the result as valid inside the Applicative's context, when Invalid, lift the Error into the Applicative's contexst

    Definition Classes
    Validated
  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def withXor[EE, B](f: (Xor[E, Nothing]) ⇒ Xor[EE, B]): Validated[EE, B]

    Permalink

    Convert to an Xor, apply a function, convert back.

    Convert to an Xor, apply a function, convert back. This is handy when you want to use the Monadic properties of the Xor type.

    Definition Classes
    Validated

Inherited from Validated[E, Nothing]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped