Packages

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 carrying an output.

In a pipeline the output becomes the downstream stage's input, and the two yields are merged into one.

I

the input type of the stages held by the evolution (contravariant)

O

the output type (covariant)

E

the error type (covariant)

out

the output value

status

the status of the run that produced this yield

evolution

the continuation

Linear Supertypes
Serializable, Serializable, Product, Equals, Yield[I, O, E], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Some
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Yield
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Some(out: O, status: Status[E], evolution: Evolution[I, O, E])

    out

    the output value

    status

    the status of the run that produced this yield

    evolution

    the continuation

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. val evolution: Evolution[I, O, E]

    The continuation: which stage handles the next input, given status.

    The continuation: which stage handles the next input, given status.

    Definition Classes
    Some → Yield
  8. def evolve(): Stage[I, O, E]

    The stage that handles the next input: the continuation this yield's own status selects.

    The stage that handles the next input: the continuation this yield's own status selects.

    Going through the evolution directly is the exception, not the rule — the status a yield carries is the one its continuation must be chosen by, and this method is what pairs them.

    Definition Classes
    Yield
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. 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]

    Transforms all three components at once.

    Transforms all three components at once. mapOut is not called on a Yield.None, which has no output to transform, but is still required so that the result type is the same for both variants.

    Definition Classes
    Some → Yield
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. val out: O
  16. def outOption: Option[O]

    The output as an Option — for when only its presence matters.

    The output as an Option — for when only its presence matters. Prefer matching on Yield.Some / Yield.None when the status or the evolution is needed too.

    Definition Classes
    Some → Yield
  17. val status: Status[E]

    The status of the run that produced this yield.

    The status of the run that produced this yield.

    Definition Classes
    Some → Yield
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Yield[I, O, E]

Inherited from AnyRef

Inherited from Any

Ungrouped