MCPcopy Create free account
hub / github.com/davidgiven/luje / setValue

Method setValue

lib/java/util/TreeMap.java:105–115  ·  view source on GitHub ↗
(V object)

Source from the content-addressed store, hash-verified

103 }
104
105 public V setValue(V object) {
106 if (node.keys[offset] == key) {
107 V res = node.values[offset];
108 node.values[offset] = object;
109 return res;
110 }
111 if (containsKey(key)) {
112 return put(key, object);
113 }
114 throw new IllegalStateException();
115 }
116
117 @Override
118 public String toString() {

Callers

nothing calls this directly

Calls 2

containsKeyMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected