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

Method lastEntry

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

Returns the last 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

1179 * key-sort function). Returns null if the RBTreeMap is empty.
1180 */
1181 private Entry<K,V> lastEntry() {
1182 Entry<K,V> p = root;
1183 if (p != null)
1184 while (p.right != null)
1185 p = p.right;
1186 return p;
1187 }
1188
1189 /**
1190 * Returns the successor of the specified Entry, or null if no such.

Callers 3

getClosestMatchMethod · 0.95
lastKeyMethod · 0.95
lastKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected