Returns the first key in this map. @return the first key in this map. @throws NoSuchElementException if this map is empty.
()
| 4205 | * if this map is empty. |
| 4206 | */ |
| 4207 | public K firstKey() { |
| 4208 | if (root != null) { |
| 4209 | Node<K, V> node = minimum(root); |
| 4210 | return node.keys[node.left_idx]; |
| 4211 | } |
| 4212 | throw new NoSuchElementException(); |
| 4213 | } |
| 4214 | |
| 4215 | Node<K, V> findNode(K key) { |
| 4216 | java.lang.Comparable<K> object = comparator == null ? toComparable((K) key) |