object Validated extends ValidatedInstances with ValidatedFunctions with ValidatedFunctionsBinCompat0 with Serializable

Source
Validated.scala
Linear Supertypes
Serializable, Serializable, ValidatedFunctionsBinCompat0, ValidatedFunctions, ValidatedInstances, ValidatedInstances1, ValidatedInstances2, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Validated
  2. Serializable
  3. Serializable
  4. ValidatedFunctionsBinCompat0
  5. ValidatedFunctions
  6. ValidatedInstances
  7. ValidatedInstances1
  8. ValidatedInstances2
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Invalid[+E](e: E) extends Validated[E, Nothing] with Product with Serializable
  2. final case class Valid[+A](a: A) extends Validated[Nothing, A] with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def catchNonFatal[A](f: ⇒ A): Validated[Throwable, A]
    Definition Classes
    ValidatedFunctions
  6. def catchOnly[T >: Null <: Throwable]: CatchOnlyPartiallyApplied[T]

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

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

    For example:

    scala> Validated.catchOnly[NumberFormatException] { "foo".toInt }
    res0: Validated[NumberFormatException, Int] = Invalid(java.lang.NumberFormatException: For input string: "foo")

    This method and its usage of NotNull are inspired by and derived from the fromTryCatchThrowable method contributed to Scalaz by Brian McKenna.

  7. implicit def catsDataApplicativeErrorForValidated[E](implicit E: Semigroup[E]): ApplicativeError[[β$2$]Validated[E, β$2$], E]
    Definition Classes
    ValidatedInstances
  8. implicit val catsDataBitraverseForValidated: Bitraverse[Validated]
    Definition Classes
    ValidatedInstances
  9. implicit def catsDataCommutativeApplicativeForValidated[E](implicit arg0: CommutativeSemigroup[E]): CommutativeApplicative[[β$4$]Validated[E, β$4$]]
    Definition Classes
    ValidatedInstances1
  10. implicit def catsDataEqForValidated[A, B](implicit arg0: Eq[A], arg1: Eq[B]): Eq[Validated[A, B]]
    Definition Classes
    ValidatedInstances2
  11. implicit def catsDataMonoidForValidated[A, B](implicit A: Semigroup[A], B: Monoid[B]): Monoid[Validated[A, B]]
    Definition Classes
    ValidatedInstances
  12. implicit def catsDataOrderForValidated[A, B](implicit arg0: Order[A], arg1: Order[B]): Order[Validated[A, B]]
    Definition Classes
    ValidatedInstances
  13. implicit def catsDataPartialOrderForValidated[A, B](implicit arg0: PartialOrder[A], arg1: PartialOrder[B]): PartialOrder[Validated[A, B]]
    Definition Classes
    ValidatedInstances1
  14. implicit def catsDataSemigroupForValidated[A, B](implicit A: Semigroup[A], B: Semigroup[B]): Semigroup[Validated[A, B]]
    Definition Classes
    ValidatedInstances1
  15. implicit def catsDataSemigroupKForValidated[A](implicit A: Semigroup[A]): SemigroupK[[β$0$]Validated[A, β$0$]]
    Definition Classes
    ValidatedInstances
  16. implicit def catsDataShowForValidated[A, B](implicit A: Show[A], B: Show[B]): Show[Validated[A, B]]
    Definition Classes
    ValidatedInstances
  17. implicit def catsDataTraverseFunctorForValidated[E]: Traverse[[β$6$]Validated[E, β$6$]]
    Definition Classes
    ValidatedInstances2
  18. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  19. final def cond[E, A](test: Boolean, a: ⇒ A, e: ⇒ E): Validated[E, A]

    If the condition is satisfied, return the given A as valid, otherwise return the given E as invalid.

    If the condition is satisfied, return the given A as valid, otherwise return the given E as invalid.

    Definition Classes
    ValidatedFunctions
  20. final def condNec[A, B](test: Boolean, b: ⇒ B, a: ⇒ A): ValidatedNec[A, B]

    If the condition is satisfied, return the given B as valid NEC, otherwise return the given A as invalid NEC.

    If the condition is satisfied, return the given B as valid NEC, otherwise return the given A as invalid NEC.

    Definition Classes
    ValidatedFunctionsBinCompat0
  21. final def condNel[E, A](test: Boolean, a: ⇒ A, e: ⇒ E): ValidatedNel[E, A]

    If the condition is satisfied, return the given A as valid NEL, otherwise return the given E as invalid NEL.

    If the condition is satisfied, return the given A as valid NEL, otherwise return the given E as invalid NEL.

    Definition Classes
    ValidatedFunctions
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def fromEither[A, B](e: Either[A, B]): Validated[A, B]

    Converts an Either[A, B] to a Validated[A, B].

    Converts an Either[A, B] to a Validated[A, B].

    Definition Classes
    ValidatedFunctions
  26. def fromIor[A, B](ior: Ior[A, B]): Validated[A, B]

    Converts an Ior[A, B] to a Validated[A, B].

    Converts an Ior[A, B] to a Validated[A, B].

    Definition Classes
    ValidatedFunctions
  27. def fromOption[A, B](o: Option[B], ifNone: ⇒ A): Validated[A, B]

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

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

    Definition Classes
    ValidatedFunctions
  28. def fromTry[A](t: Try[A]): Validated[Throwable, A]

    Converts a Try[A] to a Validated[Throwable, A].

    Converts a Try[A] to a Validated[Throwable, A].

    Definition Classes
    ValidatedFunctions
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def invalid[E, A](e: E): Validated[E, A]

    Converts an E to a Validated[E, A].

    Converts an E to a Validated[E, A].

    For example:

    scala> Validated.invalid[IllegalArgumentException, String](new IllegalArgumentException("Argument is nonzero"))
    res0: Validated[IllegalArgumentException, String] = Invalid(java.lang.IllegalArgumentException: Argument is nonzero)
    Definition Classes
    ValidatedFunctions
  32. def invalidNec[A, B](a: A): ValidatedNec[A, B]

    Converts an A to a ValidatedNec[A, B].

    Converts an A to a ValidatedNec[A, B].

    For example:

    scala> Validated.invalidNec[IllegalArgumentException, String](new IllegalArgumentException("Argument is nonzero"))
    res0: ValidatedNec[IllegalArgumentException, String] = Invalid(Chain(java.lang.IllegalArgumentException: Argument is nonzero))
    Definition Classes
    ValidatedFunctionsBinCompat0
  33. def invalidNel[E, A](e: E): ValidatedNel[E, A]

    Converts an E to a ValidatedNel[E, A].

    Converts an E to a ValidatedNel[E, A].

    For example:

    scala> Validated.invalidNel[IllegalArgumentException, String](new IllegalArgumentException("Argument is nonzero"))
    res0: ValidatedNel[IllegalArgumentException, String] = Invalid(NonEmptyList(java.lang.IllegalArgumentException: Argument is nonzero))
    Definition Classes
    ValidatedFunctions
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def valid[E, A](a: A): Validated[E, A]

    Converts a A to a Validated[E, A].

    Converts a A to a Validated[E, A].

    For example:

    scala> Validated.valid[IllegalArgumentException, String]("Hello world")
    res0: Validated[IllegalArgumentException, String] = Valid(Hello world)
    Definition Classes
    ValidatedFunctions
  41. def validNec[A, B](b: B): ValidatedNec[A, B]

    Converts a B to a ValidatedNec[A, B].

    Converts a B to a ValidatedNec[A, B].

    For example:

    scala> Validated.validNec[IllegalArgumentException, String]("Hello world")
    res0: ValidatedNec[IllegalArgumentException, String] = Valid(Hello world)
    Definition Classes
    ValidatedFunctionsBinCompat0
  42. def validNel[E, A](a: A): ValidatedNel[E, A]

    Converts a A to a ValidatedNel[E, A].

    Converts a A to a ValidatedNel[E, A].

    For example:

    scala> Validated.validNel[IllegalArgumentException, String]("Hello world")
    res0: ValidatedNel[IllegalArgumentException, String] = Valid(Hello world)
    Definition Classes
    ValidatedFunctions
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from ValidatedFunctionsBinCompat0

Inherited from ValidatedFunctions

Inherited from ValidatedInstances

Inherited from ValidatedInstances1

Inherited from ValidatedInstances2

Inherited from AnyRef

Inherited from Any

Ungrouped