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[Any, String], String, Nothing] val invalidStage = Validated.Invalid[String] // Stage[cats.data.Validated[String, Any], String, Nothing]
- Alphabetic
- By Inheritance
- Validated
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
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
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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, Any], 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[Any, T], T].
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated