SingleItemScopeRegistry

class SingleItemScopeRegistry : ScopeRegistry

ScopeRegistry that is specialized to hold only one item.

If the key changes, the held item will be replaced.

Constructors

SingleItemScopeRegistry
Link copied to clipboard
common
fun SingleItemScopeRegistry()

Functions

clear
Link copied to clipboard
common
open override fun clear()
Remove the item & reset the scope.
close
Link copied to clipboard
common
override fun close()
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
getOrCreate
Link copied to clipboard
common
open override fun getOrCreate(key: RegKey, sync: Boolean, creator: () -> Reference<Any>): Any
Get or create a value that correspond for the given key.
getOrNull
Link copied to clipboard
common
open override fun getOrNull(key: RegKey): () -> Any??
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
isEmpty
Link copied to clipboard
common
fun isEmpty(): Boolean
remove
Link copied to clipboard
common
open override fun remove(key: RegKey)
toString
Link copied to clipboard
common
open fun toString(): String
values
Link copied to clipboard
common
open override fun values(): List<Pair<RegKey, () -> Any?>>