MCPcopy Create free account
hub / github.com/davidgiven/luje / lastKey

Method lastKey

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

Source from the content-addressed store, hash-verified

688 }
689
690 public K lastKey() {
691 if (backingMap.size > 0) {
692 if (!hasEnd) {
693 Node<K, V> node = maximum(backingMap.root);
694 if (node != null && checkLowerBound(node.keys[node.right_idx])) {
695 return node.keys[node.right_idx];
696 }
697 } else {
698 setLastKey();
699 if (lastKeyNode != null) {
700 return lastKeyNode.keys[lastKeyIndex];
701 }
702 }
703 }
704 throw new NoSuchElementException();
705 }
706
707
708 @Override

Callers

nothing calls this directly

Calls 3

checkLowerBoundMethod · 0.95
setLastKeyMethod · 0.95
maximumMethod · 0.80

Tested by

no test coverage detected