ClassValueMap
class ClassValueMap(val entries: MutableSet<Map.Entry<KClassValue.Identity?, KClassValue.Entry<*>?>> = mutableSetOf()) : AbstractMap<KClassValue.Identity?, KClassValue.Entry<*>?>
A backing map for all ClassValues. Gives a fully serialized "true state" for each pair (ClassValue cv, Class type). Also manages an unserialized fast-path cache.
Constructors
Link copied to clipboard
constructor(entries: MutableSet<Map.Entry<KClassValue.Identity?, KClassValue.Entry<*>?>> = mutableSetOf())
Properties
Functions
Link copied to clipboard
Change the value for an entry.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Any> finishEntry(classValue: KClassValue<T>, e: KClassValue.Entry<T>): KClassValue.Entry<T>?
Finish a query. Overwrite a matching placeholder. Drop stale incoming values.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Remove an entry.
Link copied to clipboard
Initiate a query. Store a promise (placeholder) if there is no value yet.