final class ZEnvironment[+R] extends Serializable
- Self Type
- ZEnvironment[R]
- Alphabetic
- By Inheritance
- ZEnvironment
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait UnsafeAPI extends AnyRef
- trait UnsafeAPI2 extends AnyRef
- trait UnsafeAPI3 extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++[R1](that: ZEnvironment[R1])(implicit arg0: zio.EnvironmentTag[R1]): ZEnvironment[R with R1]
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add[A](a: A)(implicit tag: Tag[A]): ZEnvironment[R with A]
Adds a service to the environment.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- ZEnvironment → AnyRef → Any
- def get[A >: R](implicit tag: Tag[A]): A
Retrieves a service from the environment.
- def getAt[K, V](k: K)(implicit ev: <:<[R, Map[K, V]], tagged: zio.EnvironmentTag[Map[K, V]]): Option[V]
Retrieves a service from the environment corresponding to the specified key.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getDynamic[A](implicit tag: Tag[A]): Option[A]
Retrieves a service from the environment if it exists in the environment.
- lazy val hashCode: Int
- Definition Classes
- ZEnvironment → AnyRef → Any
- def isEmpty: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def prune[R1 >: R](implicit tagged: zio.EnvironmentTag[R1]): ZEnvironment[R1]
Prunes the environment to the set of services statically known to be contained within it.
- def size: Int
The size of the environment, which is the number of services contained in the environment.
The size of the environment, which is the number of services contained in the environment. This is intended primarily for testing purposes.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ZEnvironment → AnyRef → Any
- def union[R1](that: ZEnvironment[R1])(implicit arg0: zio.EnvironmentTag[R1]): ZEnvironment[R with R1]
Combines this environment with the specified environment.
- def unionAll[R1](that: ZEnvironment[R1]): ZEnvironment[R with R1]
Combines this environment with the specified environment.
Combines this environment with the specified environment. In the event of service collisions, which may not be reflected in statically known types, the right hand side will be preferred.
- val unsafe: UnsafeAPI with UnsafeAPI2 with UnsafeAPI3
- def update[A >: R](f: (A) => A)(implicit arg0: Tag[A]): ZEnvironment[R]
Updates a service in the environment.
- def updateAt[K, V](k: K)(f: (V) => V)(implicit ev: <:<[R, Map[K, V]], tag: Tag[Map[K, V]]): ZEnvironment[R]
Updates a service in the environment corresponding to the specified key.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()