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