Packages

object ZPure

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

Type Members

  1. final class EnvironmentWithPartiallyApplied[R] extends AnyVal
  2. final class EnvironmentWithPurePartiallyApplied[R] extends AnyVal
  3. sealed trait FlagType extends AnyRef
  4. final class ServiceWithPartiallyApplied[R] extends AnyVal
  5. final class ServiceWithPurePartiallyApplied[R] extends AnyVal
  6. implicit final class ZPureRefineToOrDieOps[W, S1, S2, R, E <: Throwable, A] extends AnyRef

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. implicit def ZPureCovariant[W, S1, S2, R, E]: Covariant[[+A]ZPure[W, S1, S2, R, E, A]]

    The Covariant instance for ZPure.

  5. implicit def ZPureCovariantIdentityBoth[W, S, R, E]: CovariantIdentityBoth[[+A]ZPure[W, S, S, R, E, A]]

    The IdentityBoth instance for ZPure.

  6. implicit def ZPureIdentityFlatten[W, S, R, E]: IdentityFlatten[[+A]ZPure[W, S, S, R, E, A]]

    The IdentityFlatten instance for ZPure.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def attempt[S, A](a: => A): ZPure[Nothing, S, S, Any, Throwable, A]

    Constructs a computation, catching any Throwable that is thrown.

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def collectAll[F[+_], W, S, R, E, A](fa: F[ZPure[W, S, S, R, E, A]])(implicit arg0: ForEach[F]): ZPure[W, S, S, R, E, F[A]]

    Combines a collection of computations into a single computation that passes the updated state from each computation to the next and collects the results.

  11. def environment[S, R]: ZPure[Nothing, S, S, R, Nothing, ZEnvironment[R]]

    Accesses the whole environment of the computation.

  12. def environmentWith[R]: EnvironmentWithPartiallyApplied[R]

    Accesses the environment of the computation.

  13. def environmentWithPure[R]: EnvironmentWithPurePartiallyApplied[R]

    Accesses the environment of the computation in the context of a computation.

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def fail[E](e: E): ZPure[Nothing, Any, Nothing, Any, E, Nothing]
  17. def failCause[E](cause: Cause[E]): ZPure[Nothing, Any, Nothing, Any, E, Nothing]
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. def forEach[F[+_], W, S, R, E, A, B](fa: F[A])(f: (A) => ZPure[W, S, S, R, E, B])(implicit arg0: ForEach[F]): ZPure[W, S, S, R, E, F[B]]

    Maps each element of a collection to a computation and combines them all into a single computation that passes the updated state from each computation to the next and collects the results.

  20. def foreach[W, S, R, E, A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) => ZPure[W, S, S, R, E, B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZPure[W, S, S, R, E, Collection[B]]

    Maps each element of a collection to a computation and combines them all into a single computation that passes the updated state from each computation to the next and collects the results.

  21. def foreachDiscard[W, S, R, E, A, B](in: Iterable[A])(f: (A) => ZPure[W, S, S, R, E, B]): ZPure[W, S, S, R, E, Unit]

    Maps each element of a collection to a computation and combines them all into a single computation that passes the updated state from each computation to the next and discards the results.

  22. def fromEither[S, L, R](either: Either[L, R]): ZPure[Nothing, S, S, Any, L, R]

    Constructs a computation from an Either.

  23. def fromOption[S, A](option: Option[A]): ZPure[Nothing, S, S, Any, Unit, A]

    Constructs a computation from an Option.

  24. def fromPredicate[A](value: A)(f: (A) => Boolean): Validation[None.type, A]

    Constructs a Validation from a predicate, failing with None.

  25. def fromPredicateWith[E, A](error: => E)(value: A)(f: (A) => Boolean): Validation[E, A]

    Constructs a Validation from a predicate, failing with the error provided.

  26. def fromTry[S, A](t: Try[A]): ZPure[Nothing, S, S, Any, Throwable, A]

    Constructs a computation from a scala.util.Try.

  27. def get[S]: ZPure[Nothing, S, S, Any, Nothing, S]

    Constructs a computation that returns the initial state unchanged.

  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def log[S, W](w: W): ZPure[W, S, S, Any, Nothing, Unit]
  32. def modify[S1, S2, A](f: (S1) => (A, S2)): ZPure[Nothing, S1, S2, Any, Nothing, A]

    Constructs a computation from the specified modify function.

  33. def modifyEither[S1, S2, E, A](f: (S1) => Either[E, (A, S2)]): ZPure[Nothing, S1, S2, Any, E, A]

    Constructs a computation that may fail from the specified modify function.

  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. def none[S]: ZPure[Nothing, S, S, Any, Nothing, Option[Nothing]]

    Constructs a computation that succeeds with the None value.

  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. def service[S, R](implicit arg0: Tag[R]): ZPure[Nothing, S, S, R, Nothing, R]

    Accesses the specified service in the environment of the computation.

  39. def serviceWith[R]: ServiceWithPartiallyApplied[R]

    Accesses the specified service in the environment of the computation.

  40. def serviceWithPure[R]: ServiceWithPurePartiallyApplied[R]

    Accesses the specified service in the environment of the computation in the context of a computation.

  41. def set[S](s: S): ZPure[Nothing, Any, S, Any, Nothing, Unit]

    Constructs a computation that sets the state to the specified value.

  42. def succeed[S, A](a: A): ZPure[Nothing, S, S, Any, Nothing, A]

    Constructs a computation that always succeeds with the specified value, passing the state through unchanged.

  43. def suspend[W, S1, S2, R, E, A](pure: => ZPure[W, S1, S2, R, E, A]): ZPure[W, S1, S2, R, E, A]

    Returns a lazily constructed computation, whose construction may itself require effects.

  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def unit[S]: ZPure[Nothing, S, S, Any, Nothing, Unit]

    Constructs a computation that always returns the Unit value, passing the state through unchanged.

  47. def unless[W, S, R, E, A](p: Boolean)(pure: => ZPure[W, S, S, R, E, A]): ZPure[W, S, S, R, E, Option[A]]

    The moral equivalent of if (!p) exp

  48. def update[S1, S2](f: (S1) => S2): ZPure[Nothing, S1, S2, Any, Nothing, Unit]

    Constructs a computation from the specified update function.

  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. def when[W, S, R, E, A](p: Boolean)(pure: => ZPure[W, S, S, R, E, A]): ZPure[W, S, S, R, E, Option[A]]

    The moral equivalent of if (p) exp

  53. def whenCase[W, S, R, E, A, B](a: A)(pf: PartialFunction[A, ZPure[W, S, S, R, E, B]]): ZPure[W, S, S, R, E, Option[B]]

    Runs a computation when the supplied PartialFunction matches for the given value, otherwise does nothing.

  54. object FlagType

Inherited from AnyRef

Inherited from Any

Ungrouped