MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / firstKey

Method firstKey

vm/JavaAPI/src/java/util/TreeMap.java:4207–4213  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

minimumMethod · 0.95

Tested by

no test coverage detected