Class

io.dylemma.spac.Transformer

ParallelEither

Related Doc: package Transformer

Permalink

case class ParallelEither[A, L, R](left: Transformer[A, L], right: Transformer[A, R]) extends Transformer[A, Either[L, R]] with Product with Serializable

Convenience version of Parallel for exactly two transformers of arbitrary types. Results from t1 will be wrapped as Left, and results from t2 will be wrapped as Right. The downstream handler will receive results of type Either[T1, T2].

A

The input type

L

The "left" transformer's "transformed" type

R

The "right" transformer's "transformed" type

left

The "left" transformer

right

The "right" transformer

Source
Transformer.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Transformer[A, Either[L, R]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ParallelEither
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Transformer
  7. AnyRef
  8. Any
Implicitly
  1. by TransformerParsingOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ParallelEither(left: Transformer[A, L], right: Transformer[A, R])

    Permalink

    left

    The "left" transformer

    right

    The "right" transformer

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to any2stringadd[ParallelEither[A, L, R]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ParallelEither[A, L, R], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to ArrowAssoc[ParallelEither[A, L, R]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if A is a superclass of XMLEvent (A >: XMLEvent).
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >>[Out](end: Consumer[Either[L, R], Out]): Consumer[A, Out]

    Permalink
    Definition Classes
    Transformer
  7. def >>[C](nextT: Transformer[Either[L, R], C]): Transformer[A, C]

    Permalink
    Definition Classes
    Transformer
  8. def andThen[Out](end: Consumer[Either[L, R], Out]): Consumer[A, Out]

    Permalink
    Definition Classes
    Transformer
  9. def andThen[C](nextT: Transformer[Either[L, R], C]): Transformer[A, C]

    Permalink
    Definition Classes
    Transformer
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def collect[C](pf: PartialFunction[Either[L, R], C]): Transformer[A, C]

    Permalink
    Definition Classes
    Transformer
  13. def consumeAsFold[R](init: R)(f: (R, Either[L, R]) ⇒ R): Consumer[A, R]

    Permalink
    Definition Classes
    Transformer
  14. def consumeFirst: Consumer[A, Either[L, R]]

    Permalink
    Definition Classes
    Transformer
  15. def consumeFirstOption: Consumer[A, Option[Either[L, R]]]

    Permalink
    Definition Classes
    Transformer
  16. def consumeForEach(f: (Either[L, R]) ⇒ Any): Consumer[A, Unit]

    Permalink
    Definition Classes
    Transformer
  17. def consumeToList: Consumer[A, List[Either[L, R]]]

    Permalink
    Definition Classes
    Transformer
  18. def drop(n: Int): Transformer[A, Either[L, R]]

    Permalink
    Definition Classes
    Transformer
  19. def dropWhile(p: (Either[L, R]) ⇒ Boolean): Transformer[A, Either[L, R]]

    Permalink
    Definition Classes
    Transformer
  20. def ensuring(cond: (ParallelEither[A, L, R]) ⇒ Boolean, msg: ⇒ Any): ParallelEither[A, L, R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to Ensuring[ParallelEither[A, L, R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: (ParallelEither[A, L, R]) ⇒ Boolean): ParallelEither[A, L, R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to Ensuring[ParallelEither[A, L, R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean, msg: ⇒ Any): ParallelEither[A, L, R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to Ensuring[ParallelEither[A, L, R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): ParallelEither[A, L, R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to Ensuring[ParallelEither[A, L, R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def filter(p: (Either[L, R]) ⇒ Boolean): Transformer[A, Either[L, R]]

    Permalink
    Definition Classes
    Transformer
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to StringFormat[ParallelEither[A, L, R]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. val left: Transformer[A, L]

    Permalink

    The "left" transformer

  31. def makeHandler[Out](next: Handler[Either[L, R], Out]): Handler[A, Out]

    Permalink
    Definition Classes
    ParallelEitherTransformer
  32. def map[C](f: (Either[L, R]) ⇒ C): Transformer[A, C]

    Permalink
    Definition Classes
    Transformer
  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. def parallel[In2 <: A, B2 >: Either[L, R]](other: Transformer[In2, B2]): Transformer[In2, B2]

    Permalink
    Definition Classes
    Transformer
  37. def parallelEither[In2 <: A, C](other: Transformer[In2, C]): Transformer[In2, Either[Either[L, R], C]]

    Permalink
    Definition Classes
    Transformer
  38. def parseAsFold[R](init: R)(f: (R, Either[L, R]) ⇒ R): Parser[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to spac.TransformerParsingOps[Either[L, R]] performed by method TransformerParsingOps in io.dylemma.spac.syntax.TransformerSyntax. This conversion will take place only if A is a superclass of XMLEvent (A >: XMLEvent).
    Definition Classes
    TransformerParsingOps
  39. def parseFirst: Parser[Either[L, R]]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to spac.TransformerParsingOps[Either[L, R]] performed by method TransformerParsingOps in io.dylemma.spac.syntax.TransformerSyntax. This conversion will take place only if A is a superclass of XMLEvent (A >: XMLEvent).
    Definition Classes
    TransformerParsingOps
  40. def parseFirstOption: Parser[Option[Either[L, R]]]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to spac.TransformerParsingOps[Either[L, R]] performed by method TransformerParsingOps in io.dylemma.spac.syntax.TransformerSyntax. This conversion will take place only if A is a superclass of XMLEvent (A >: XMLEvent).
    Definition Classes
    TransformerParsingOps
  41. def parseToList: Parser[List[Either[L, R]]]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to spac.TransformerParsingOps[Either[L, R]] performed by method TransformerParsingOps in io.dylemma.spac.syntax.TransformerSyntax. This conversion will take place only if A is a superclass of XMLEvent (A >: XMLEvent).
    Definition Classes
    TransformerParsingOps
  42. def parseWith[B](consumer: Consumer[Either[L, R], Try[B]]): Parser[B]

    Permalink

    Attach a Consumer to this transformer to create a Parser.

    Attach a Consumer to this transformer to create a Parser.

    B

    The type of the Results emitted by the consumer

    consumer

    All events passed through this transformer will be passed through the given consumer.

    returns

    A Parser whose result is the result of the consumer after receiving events from this transformer.

    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to spac.TransformerParsingOps[Either[L, R]] performed by method TransformerParsingOps in io.dylemma.spac.syntax.TransformerSyntax. This conversion will take place only if A is a superclass of XMLEvent (A >: XMLEvent).
    Definition Classes
    TransformerParsingOps
  43. val right: Transformer[A, R]

    Permalink

    The "right" transformer

  44. def scan[S](init: S)(f: (S, Either[L, R]) ⇒ S): Transformer[A, S]

    Permalink
    Definition Classes
    Transformer
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. def take(n: Int): Transformer[A, Either[L, R]]

    Permalink
    Definition Classes
    Transformer
  47. def takeWhile(p: (Either[L, R]) ⇒ Boolean): Transformer[A, Either[L, R]]

    Permalink
    Definition Classes
    Transformer
  48. def unwrapSafe[T](implicit ev: <:<[Either[L, R], Try[T]]): Transformer[A, T]

    Permalink
    Definition Classes
    Transformer
  49. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. def withFilter(p: (Either[L, R]) ⇒ Boolean): Transformer[A, Either[L, R]]

    Permalink
    Definition Classes
    Transformer
  53. def withSideEffect(effect: (Either[L, R]) ⇒ Any): Transformer[A, Either[L, R]]

    Permalink
    Definition Classes
    Transformer
  54. def wrapSafe: Transformer[A, Try[Either[L, R]]]

    Permalink
    Definition Classes
    Transformer
  55. def [B](y: B): (ParallelEither[A, L, R], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ParallelEither[A, L, R] to ArrowAssoc[ParallelEither[A, L, R]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if A is a superclass of XMLEvent (A >: XMLEvent).
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Transformer[A, Either[L, R]]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion TransformerParsingOps from ParallelEither[A, L, R] to spac.TransformerParsingOps[Either[L, R]]

Inherited by implicit conversion any2stringadd from ParallelEither[A, L, R] to any2stringadd[ParallelEither[A, L, R]]

Inherited by implicit conversion StringFormat from ParallelEither[A, L, R] to StringFormat[ParallelEither[A, L, R]]

Inherited by implicit conversion Ensuring from ParallelEither[A, L, R] to Ensuring[ParallelEither[A, L, R]]

Inherited by implicit conversion ArrowAssoc from ParallelEither[A, L, R] to ArrowAssoc[ParallelEither[A, L, R]]

Ungrouped