object Validated
Stage projections for cats.data.Validated.
cats.data.Validated[L, R] is a right-biased validation type where Invalid(l) holds an error value and Valid(r)
holds a success value. The two projections here allow a pipeline to route values based on which side is present,
producing h8io.stages.Yield.Some for the expected side and h8io.stages.Yield.None otherwise. In both cases the
status is h8io.stages.Status.Success.
Example:
import h8io.stages.cats.Validated val validStage = Validated.Valid[String] // Stage[cats.data.Validated[?, String], String, Nothing] val invalidStage = Validated.Invalid[String] // Stage[cats.data.Validated[String, ?], String, Nothing]
- Source
- Validated.scala
- Alphabetic
- By Inheritance
- Validated
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Validated[+L, +R] = cats.data.Validated[L, R]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Invalid extends LeftProjection[Validated]
Extracts the
Invalid(left/error) value, yielding nothing forValidvalues.Extracts the
Invalid(left/error) value, yielding nothing forValidvalues.Use
Validated.Invalid[T]to get a typedProjection[Validated[T, ?], T]. - object Valid extends RightProjection[Validated]
Extracts the
Valid(right/success) value, yielding nothing forInvalidvalues.Extracts the
Valid(right/success) value, yielding nothing forInvalidvalues.Use
Validated.Valid[T]to get a typedProjection[Validated[?, T], T].
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)