MCPcopy Create free account
hub / github.com/ReadyTalk/avian / put

Method put

classpath/java/util/TreeMap.java:96–99  ·  view source on GitHub ↗
(K key, V value)

Source from the content-addressed store, hash-verified

94 }
95
96 public V put(K key, V value) {
97 MyEntry<K,V> e = set.addAndReplace(new MyEntry(key, value));
98 return e == null ? null : e.value;
99 }
100
101 public void putAll(Map<? extends K,? extends V> elts) {
102 for (Map.Entry<? extends K, ? extends V> entry : elts.entrySet()) {

Callers 3

mainMethod · 0.95
putAllMethod · 0.95
readObjectMethod · 0.95

Calls 1

addAndReplaceMethod · 0.80

Tested by 1

mainMethod · 0.76