()
| 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 |
nothing calls this directly
no test coverage detected