MCPcopy Create free account
hub / github.com/GateNLP/gate-core / remove

Method remove

src/main/java/gate/util/RBTreeMap.java:500–509  ·  view source on GitHub ↗

Removes the mapping for this key from this RBTreeMap if present. @return previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified

(Object key)

Source from the content-addressed store, hash-verified

498 * <tt>null</tt> keys.
499 */
500 @Override
501 public V remove(Object key) {
502 Entry<K,V> p = getEntry(key);
503 if (p == null)
504 return null;
505
506 V oldValue = p.value;
507 deleteEntry(p);
508 return oldValue;
509 }
510
511 /**
512 * Removes all mappings from this RBTreeMap.

Callers

nothing calls this directly

Calls 8

getEntryMethod · 0.95
deleteEntryMethod · 0.95
firstEntryMethod · 0.95
successorMethod · 0.95
valEqualsMethod · 0.95
removeMethod · 0.65
getValueMethod · 0.65
getKeyMethod · 0.65

Tested by

no test coverage detected