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

Method firstKey

vm/JavaAPI/src/java/util/TreeMap.java:692–708  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

690 }
691
692 public K firstKey() {
693 if (backingMap.size > 0 && !(startKey.equals(endKey))) {
694 if (!hasStart) {
695 Node<K, V> node = minimum(backingMap.root);
696 if (node != null
697 && checkUpperBound(node.keys[node.left_idx])) {
698 return node.keys[node.left_idx];
699 }
700 } else {
701 setFirstKey();
702 if (firstKeyNode != null) {
703 return firstKeyNode.keys[firstKeyIndex];
704 }
705 }
706 }
707 throw new NoSuchElementException();
708 }
709
710 @SuppressWarnings("unchecked")
711 @Override

Callers

nothing calls this directly

Calls 4

checkUpperBoundMethod · 0.95
setFirstKeyMethod · 0.95
equalsMethod · 0.65
minimumMethod · 0.45

Tested by

no test coverage detected