MCPcopy Create free account
hub / github.com/GateNLP/gate-core / firstEntry

Method firstEntry

src/main/java/gate/util/RBTreeMap.java:1169–1175  ·  view source on GitHub ↗

Returns the first Entry in the RBTreeMap (according to the RBTreeMap's key-sort function). Returns null if the RBTreeMap is empty.

()

Source from the content-addressed store, hash-verified

1167 * key-sort function). Returns null if the RBTreeMap is empty.
1168 */
1169 private Entry<K,V> firstEntry() {
1170 Entry<K,V> p = root;
1171 if (p != null)
1172 while (p.left != null)
1173 p = p.left;
1174 return p;
1175 }
1176
1177 /**
1178 * Returns the last Entry in the RBTreeMap (according to the RBTreeMap's

Callers 6

firstKeyMethod · 0.95
containsMethod · 0.95
removeMethod · 0.95
firstKeyMethod · 0.80
iteratorMethod · 0.80
IteratorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected