final case class Some[-I, +O, +E](out: O, status: Status[E], evolution: Evolution[I, O, E]) extends Yield[I, O, E] with Product with Serializable
A Yield that carries an output value produced by the stage.
When composing two stages (see Stage.AndThen), if the first stage yields a Some, its output is passed as
input to the second stage and the two results are merged via compose.
- I
the input type for the evolution stages (contravariant)
- O
the output type (covariant)
- E
the error type (covariant)
- out
the output value produced by the stage
- status
the execution status
- evolution
the evolution strategy for re-processing
- Source
- Yield.scala
- Alphabetic
- By Inheritance
- Some
- Serializable
- Product
- Equals
- Yield
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
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
- val evolution: Evolution[I, O, E]
The evolution strategy that determines which stage to invoke next, depending on status.
- def evolve(): Stage[I, O, E]
Returns the next Stage to invoke when the pipeline is ready to re-process.
Returns the next Stage to invoke when the pipeline is ready to re-process.
The stage returned depends on the current status: Status.Success yields the continuation for the normal path, Status.Complete for the finished path.
- returns
the next
Stageto use for re-processing
- Definition Classes
- Yield
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[_I, _O, _E](mapOut: (O) => _O, mapStatus: (Status[E]) => Status[_E], mapEvolution: (Evolution[I, O, E]) => Evolution[_I, _O, _E]): Some[_I, _O, _E]
Returns a new
Yieldwith each component independently transformed.Returns a new
Yieldwith each component independently transformed.- _I
the new input type for the evolution
- _O
the new output type
- _E
the new error type
- mapOut
maps the output value (only applied in Yield.Some)
- mapStatus
maps the status
- mapEvolution
maps the evolution
- returns
a transformed
Yield
- 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()
- val out: O
- def outOption: Option[O]
Returns
scala.Some(out)if this is a Yield.Some, orscala.Noneif this is a Yield.None.Returns
scala.Some(out)if this is a Yield.Some, orscala.Noneif this is a Yield.None.Prefer pattern-matching on Yield.Some / Yield.None when you also need the
statusorevolution. UseoutOptionwhen you only care about whether a value was produced. - def productElementNames: Iterator[String]
- Definition Classes
- Product
- val status: Status[E]
The status produced by the stage that created this
Yield. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)