MCPcopy Create free account
hub / github.com/davidgiven/luje / lastKey

Method lastKey

lib/java/util/TreeMap.java:1403–1409  ·  view source on GitHub ↗

Returns the last key in this map. @return the last key in this map. @throws NoSuchElementException if this map is empty.

()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

maximumMethod · 0.95

Tested by

no test coverage detected