MCPcopy Index your code
hub / github.com/davidgiven/luje / firstKey

Method firstKey

lib/java/util/TreeMap.java:568–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

566 }
567
568 public K firstKey() {
569 if (backingMap.size > 0) {
570 if (!hasStart) {
571 Node<K, V> node = minimum(backingMap.root);
572 if (node != null && checkUpperBound(node.keys[node.left_idx])) {
573 return node.keys[node.left_idx];
574 }
575 } else {
576 setFirstKey();
577 if (firstKeyNode != null) {
578 return firstKeyNode.keys[firstKeyIndex];
579 }
580 }
581 }
582 throw new NoSuchElementException();
583 }
584
585
586 @SuppressWarnings("unchecked")

Callers

nothing calls this directly

Calls 3

checkUpperBoundMethod · 0.95
setFirstKeyMethod · 0.95
minimumMethod · 0.80

Tested by

no test coverage detected