Returns the first key in this map. @return the first key in this map. @throws NoSuchElementException if this map is empty.
()
| 1251 | * if this map is empty. |
| 1252 | */ |
| 1253 | public K firstKey() { |
| 1254 | if (root != null) { |
| 1255 | Node<K, V> node = minimum(root); |
| 1256 | return node.keys[node.left_idx]; |
| 1257 | } |
| 1258 | throw new NoSuchElementException(); |
| 1259 | } |
| 1260 | |
| 1261 | |
| 1262 | /** |