()
| 686 | } |
| 687 | |
| 688 | public K firstKey() { |
| 689 | if (backingMap.size > 0 && !(startKey.equals(endKey))) { |
| 690 | if (!hasStart) { |
| 691 | Node<K, V> node = minimum(backingMap.root); |
| 692 | if (node != null |
| 693 | && checkUpperBound(node.keys[node.left_idx])) { |
| 694 | return node.keys[node.left_idx]; |
| 695 | } |
| 696 | } else { |
| 697 | setFirstKey(); |
| 698 | if (firstKeyNode != null) { |
| 699 | return firstKeyNode.keys[firstKeyIndex]; |
| 700 | } |
| 701 | } |
| 702 | } |
| 703 | throw new NoSuchElementException(); |
| 704 | } |
| 705 | |
| 706 | @SuppressWarnings("unchecked") |
| 707 | @Override |
nothing calls this directly
no test coverage detected