MCPcopy Create free account
hub / github.com/apache/poi / doRemove

Method doRemove

src/java/org/apache/poi/util/BinaryTree.java:406–417  ·  view source on GitHub ↗

common remove logic (remove by key or remove by value) @param o the key, or value, that we're looking for @param index _KEY or _VALUE @return the key, if remove by value, or the value, if remove by key. null if the specified key or value could not be found

(Comparable o, int index)

Source from the content-addressed store, hash-verified

404 * found
405 */
406 private Object doRemove(Comparable o, int index)
407 {
408 Node node = lookup(o, index);
409 Object rval = null;
410
411 if (node != null)
412 {
413 rval = node.getData(oppositeIndex(index));
414 doRedBlackDelete(node);
415 }
416 return rval;
417 }
418
419 /**
420 * common get logic, used to get by key or get by value

Callers 2

removeValueMethod · 0.95
removeMethod · 0.95

Calls 4

lookupMethod · 0.95
getDataMethod · 0.95
oppositeIndexMethod · 0.95
doRedBlackDeleteMethod · 0.95

Tested by

no test coverage detected