K
- the type of keys maintained by this mapV
- the type of mapped valuesMutableTrieMap
instead.@Deprecated public final class MutableTrieMap<K,V> extends TrieMap<K,V>
Modifier and Type | Method and Description |
---|---|
ImmutableTrieMap<K,V> |
immutableSnapshot()
Deprecated.
Returns a read-only snapshot of this TrieMap.
|
MutableTrieMap<K,V> |
mutableSnapshot()
Deprecated.
Returns a snapshot of this TrieMap.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, create, delegate, entrySet, equals, get, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, getOrDefault, replaceAll
public ImmutableTrieMap<K,V> immutableSnapshot()
TrieMap
The snapshot is lazily updated - the first time some branch of this
TrieMap are accessed, it is rewritten. The work of creating the snapshot
is thus distributed across subsequent updates and accesses on this
TrieMap by all threads. Note that the snapshot itself is never rewritten
unlike when calling TrieMap.mutableSnapshot()
, but the obtained snapshot
cannot be modified.
This method is used by other methods such as `size` and `iterator`.
immutableSnapshot
in class TrieMap<K,V>
public MutableTrieMap<K,V> mutableSnapshot()
TrieMap
The snapshot is lazily updated - the first time some branch in the snapshot or this TrieMap are accessed, they are rewritten. This means that the work of rebuilding both the snapshot and this TrieMap is distributed across all the threads doing updates or accesses subsequent to the snapshot creation.
mutableSnapshot
in class TrieMap<K,V>
Copyright © 2019 OpenDaylight. All rights reserved.