MutableDependencyMap

A mutable extension of DependencyMap that allows for adding and retrieving dependencies.

Report a problem

Inheritors

Functions

Link copied to clipboard
abstract fun contains(key: DependencyKey): Boolean

Checks if the given dependency key is present in the dependency map.

Link copied to clipboard
Link copied to clipboard
abstract suspend fun <T> getOrPut(key: DependencyKey, defaultValue: suspend () -> T): T

Retrieves the value associated with the specified key if it exists. If the key does not already have an associated value, the result of invoking the defaultValue function will be stored and returned as the value for the given key.

Link copied to clipboard

Combines two DependencyMaps into one.