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