Packages

object ZPipeline

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZPipeline
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. def apply[I]: ZPipeline[Any, Nothing, I, I]

    A shorter version of ZPipeline.identity, which can facilitate more compact definition of pipelines.

    A shorter version of ZPipeline.identity, which can facilitate more compact definition of pipelines.

    ZPipeline[Int].filter(_ % 2 != 0)
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def collect[In, Out](f: PartialFunction[In, Out]): ZPipeline[Any, Nothing, In, Out]

    Creates a pipeline that collects elements with the specified partial function.

    Creates a pipeline that collects elements with the specified partial function.

    ZPipeline.collect[Option[Int], Int] { case Some(v) => v }
  8. def die(e: => Throwable): ZPipeline[Any, Nothing, Any, Nothing]

    Creates a transducer that always dies with the specified exception.

    Creates a transducer that always dies with the specified exception.

    ZPipeline.die(new IllegalStateException)
  9. def dropUntil[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]

    Creates a pipeline that drops elements until the specified predicate evaluates to true.

    Creates a pipeline that drops elements until the specified predicate evaluates to true.

    ZPipeline.dropUntil[Int](_ > 100)
  10. def dropWhile[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]

    Creates a pipeline that drops elements while the specified predicate evaluates to true.

    Creates a pipeline that drops elements while the specified predicate evaluates to true.

    ZPipeline.dropWhile[Int](_ <= 100)
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def fail[E](e: => E): ZPipeline[Any, E, Any, Nothing]

    Creates a pipeline that always fails with the specified value.

  14. def failCause[E](cause: => Cause[E]): ZPipeline[Any, E, Any, Nothing]

    Creates a transducer that always dies with the specified exception.

  15. def filter[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]

    Creates a pipeline that filters elements according to the specified predicate.

  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. def fold[I, O](out0: O)(contFn: (O) => Boolean)(f: (O, I) => O): ZPipeline[Any, Nothing, I, O]

    A stateful fold that will emit the state and reset to the starting state every time the specified predicate returns false.

  18. def foldLeft[In, Out](z: Out)(f: (Out, In) => Out): ZPipeline[Any, Nothing, In, Out]

    Creates a pipeline from the provided fold function, which operates on the state and the elements of the source stream.

    Creates a pipeline from the provided fold function, which operates on the state and the elements of the source stream.

    val counter = ZPipeline.foldLeft(0)((count, _) => count + 1)
  19. def foldLeftZIO[R, E, I, O](z: O)(f: (O, I) => ZIO[R, E, O]): ZPipeline[R, E, I, O]

    Creates a transducer by effectfully folding over a structure of type O.

    Creates a transducer by effectfully folding over a structure of type O. The transducer will fold the inputs until the stream ends, resulting in a stream with one element.

  20. def foldUntil[I, O](z: O, max: Long)(f: (O, I) => O): ZPipeline[Any, Nothing, I, O]

    Creates a transducer that folds elements of type I into a structure of type O until max elements have been folded.

    Creates a transducer that folds elements of type I into a structure of type O until max elements have been folded.

    Like foldWeighted, but with a constant cost function of 1.

  21. def foldUntilZIO[R, E, I, O](z: O, max: Long)(f: (O, I) => ZIO[R, E, O]): ZPipeline[R, E, I, O]

    Creates a transducer that effectfully folds elements of type I into a structure of type O until max elements have been folded.

    Creates a transducer that effectfully folds elements of type I into a structure of type O until max elements have been folded.

    Like foldWeightedM, but with a constant cost function of 1.

  22. def foldZIO[R, E, I, O](out0: O)(contFn: (O) => Boolean)(f: (O, I) => ZIO[R, E, O]): ZPipeline[R, E, I, O]

    A stateful fold that will emit the state and reset to the starting state every time the specified predicate returns false.

  23. def fromZIO[R, E, A](zio: ZIO[R, E, A]): ZPipeline[R, E, Any, A]

    Creates a pipeline that effectfully maps elements to the specified effectfully-computed value.

  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def identity[A]: ZPipeline[Any, Nothing, A, A]

    The identity pipeline, which does not modify streams in any way.

  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def map[In, Out](f: (In) => Out): ZPipeline[Any, Nothing, In, Out]

    Creates a pipeline that maps elements with the specified function.

  29. def mapZIO[Env0, Err0, In, Out](f: (In) => ZIO[Env0, Err0, Out]): ZPipeline[Env0, Err0, In, Out]

    Creates a pipeline that maps elements with the specified effectful function.

  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def succeed[A](a: => A): ZPipeline[Any, Nothing, Any, A]

    Creates a pipeline that always succeeds with the specified value.

  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def takeUntil[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]

    Creates a pipeline that takes elements until the specified predicate evaluates to true.

  36. def takeWhile[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]

    Creates a pipeline that takes elements while the specified predicate evaluates to true.

  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def foldLeftM[R, E, I, O](z: O)(f: (O, I) => ZIO[R, E, O]): ZPipeline[R, E, I, O]

    Creates a transducer by effectfully folding over a structure of type O.

    Creates a transducer by effectfully folding over a structure of type O. The transducer will fold the inputs until the stream ends, resulting in a stream with one element.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foldLeftZIO

  2. def foldM[R, E, I, O](out0: O)(contFn: (O) => Boolean)(f: (O, I) => ZIO[R, E, O]): ZPipeline[R, E, I, O]

    A stateful fold that will emit the state and reset to the starting state every time the specified predicate returns false.

    A stateful fold that will emit the state and reset to the starting state every time the specified predicate returns false.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foldZIO

  3. def foldUntilM[R, E, I, O](z: O, max: Long)(f: (O, I) => ZIO[R, E, O]): ZPipeline[R, E, I, O]

    Creates a transducer that effectfully folds elements of type I into a structure of type O until max elements have been folded.

    Creates a transducer that effectfully folds elements of type I into a structure of type O until max elements have been folded.

    Like foldWeightedM, but with a constant cost function of 1.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foldUntilZIO

  4. def fromEffect[R, E, A](zio: ZIO[R, E, A]): ZPipeline[R, E, Any, A]

    Creates a pipeline that effectfully maps elements to the specified effectfully-computed value.

    Creates a pipeline that effectfully maps elements to the specified effectfully-computed value.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromZIO

  5. def halt[E](cause: => Cause[E]): ZPipeline[Any, E, Any, Nothing]

    Creates a transducer that always dies with the specified exception.

    Creates a transducer that always dies with the specified exception.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use failCause

  6. def mapM[Env0, Err0, In, Out](f: (In) => ZIO[Env0, Err0, Out]): ZPipeline[Env0, Err0, In, Out]

    Creates a pipeline that maps elements with the specified effectful function.

    Creates a pipeline that maps elements with the specified effectful function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use mapZIO

Inherited from AnyRef

Inherited from Any

Ungrouped