MCPcopy Index your code
hub / github.com/clojure/clojure / entryAt

Method entryAt

src/jvm/clojure/lang/PersistentTreeMap.java:313–326  ·  view source on GitHub ↗
(Object key)

Source from the content-addressed store, hash-verified

311}
312
313public Node entryAt(Object key){
314 Node t = tree;
315 while(t != null)
316 {
317 int c = doCompare(key, t.key);
318 if(c == 0)
319 return t;
320 else if(c < 0)
321 t = t.left();
322 else
323 t = t.right();
324 }
325 return t;
326}
327
328public int doCompare(Object k1, Object k2){
329// if(comp != null)

Callers 2

containsKeyMethod · 0.95
valAtMethod · 0.95

Calls 3

doCompareMethod · 0.95
leftMethod · 0.95
rightMethod · 0.95

Tested by

no test coverage detected