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

Method firstKey

Ports/CLDC11/src/java/util/TreeMap.java:688–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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