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

Method getNextOf

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

Returns the value associated to the next key in the map if an exact match doesn't exist. If there is an exact match, the method will return the value associated to the given key. @param key the key for wich the look-up will be done. @return the value associated to the given key or the next available

(K key)

Source from the content-addressed store, hash-verified

229 * value
230 */
231 public V getNextOf(K key){
232 if (root==null) return null;
233 Entry<K,V> lub=getCeilEntry(key);
234 if (lub == null) return null;
235 return lub.value;
236 }
237
238 /**
239 * Returns the value to which this map maps the specified key. Returns

Callers 3

testGetNextOfMethod · 0.80
getMethod · 0.80
nextNodeMethod · 0.80

Calls 1

getCeilEntryMethod · 0.95

Tested by 1

testGetNextOfMethod · 0.64