object Either
Stage projections for Scala's standard scala.util.Either type.
Each projection extracts one side of an Either and either passes the value downstream (h8io.stages.Yield.Some)
or produces no output (h8io.stages.Yield.None) when the Either holds the other side. In both cases the status is
h8io.stages.Status.Success, so the pipeline continues.
Example:
val leftStage = Either.Left[String] // Stage[scala.util.Either[String, ?], String, Nothing] val rightStage = Either.Right[Int] // Stage[scala.util.Either[?, Int], Int, Nothing]
- Source
- Either.scala
- Alphabetic
- By Inheritance
- Either
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 Left extends LeftProjection[scala.Either]
Extracts the left value of an
Either[A, B], producing no output forRightvalues.Extracts the left value of an
Either[A, B], producing no output forRightvalues.Use
Either.Left[T]to get a typedProjection[scala.util.Either[T, ?], T]. - object Right extends RightProjection[scala.Either]
Extracts the right value of an
Either[A, B], producing no output forLeftvalues.Extracts the right value of an
Either[A, B], producing no output forLeftvalues.Use
Either.Right[T]to get a typedProjection[scala.util.Either[?, 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)