Returns the last key in this map. @return the last key in this map. @throws NoSuchElementException if this map is empty.
()
| 1401 | * if this map is empty. |
| 1402 | */ |
| 1403 | public K lastKey() { |
| 1404 | if (root != null) { |
| 1405 | Node<K, V> node = maximum(root); |
| 1406 | return node.keys[node.right_idx]; |
| 1407 | } |
| 1408 | throw new NoSuchElementException(); |
| 1409 | } |
| 1410 | |
| 1411 | static <K,V> Node<K, V> minimum(Node<K, V> x) { |
| 1412 | if (x == null) { |