ZEnvironment

final class ZEnvironment[+R] extends Serializable
Companion:
object
class Object
trait Matchable
class Any

Type members

Classlikes

trait UnsafeAPI

Value members

Concrete methods

def ++[R1 : Tag](that: ZEnvironment[R1]): ZEnvironment[R & R1]
def add[A](a: A)(implicit tag: Tag[A]): ZEnvironment[R & A]

Adds a service to the environment.

Adds a service to the environment.

override def equals(that: Any): Boolean
Definition Classes
Any
def get[A >: R](implicit tag: Tag[A]): A

Retrieves a service from the environment.

Retrieves a service from the environment.

def getAt[K, V](k: K)(implicit ev: R <:< Map[K, V], tagged: Tag[Map[K, V]]): Option[V]

Retrieves a service from the environment corresponding to the specified key.

Retrieves a service from the environment corresponding to the specified key.

override def hashCode: Int
Definition Classes
Any
def prune[R1 >: R](implicit tagged: Tag[R1]): ZEnvironment[R1]

Prunes the environment to the set of services statically known to be contained within it.

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. This is intended primarily for testing purposes.

The size of the environment, which is the number of services contained in the environment. This is intended primarily for testing purposes.

override def toString: String
Definition Classes
Any
def union[R1 : Tag](that: ZEnvironment[R1]): ZEnvironment[R & R1]

Combines this environment with the specified environment.

Combines this environment with the specified environment.

def unionAll[R1](that: ZEnvironment[R1]): ZEnvironment[R & R1]

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.

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.

def update[A >: R : Tag](f: A => A): ZEnvironment[R]

Updates a service in the environment.

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.

Updates a service in the environment corresponding to the specified key.

Concrete fields