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

Method putCell

classpath/java/util/HashMap.java:133–141  ·  view source on GitHub ↗
(K key, V value)

Source from the content-addressed store, hash-verified

131 }
132
133 private Cell<K, V> putCell(K key, V value) {
134 Cell<K, V> c = find(key);
135 if (c == null) {
136 insert(helper.make(key, value, null));
137 } else {
138 c.setValue(value);
139 }
140 return c;
141 }
142
143 public boolean containsKey(Object key) {
144 return find(key) != null;

Callers

nothing calls this directly

Calls 4

findMethod · 0.95
insertMethod · 0.95
makeMethod · 0.65
setValueMethod · 0.65

Tested by

no test coverage detected