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

Method doGet

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

common get logic, used to get by key or get by value @param o the key or value that we're looking for @param index _KEY or _VALUE @return the key (if the value was mapped) or the value (if the key was mapped); null if we couldn't find the specified object

(Comparable o, int index)

Source from the content-addressed store, hash-verified

427 * object
428 */
429 private Object doGet(Comparable o, int index)
430 {
431 checkNonNullComparable(o, index);
432 Node node = lookup(o, index);
433
434 return ((node == null) ? null
435 : node.getData(oppositeIndex(index)));
436 }
437
438 /**
439 * Get the opposite index of the specified index

Callers 2

getKeyForValueMethod · 0.95
getMethod · 0.95

Calls 4

lookupMethod · 0.95
getDataMethod · 0.95
oppositeIndexMethod · 0.95

Tested by

no test coverage detected