MCPcopy Create free account
hub / github.com/davidgiven/luje / tailMap

Method tailMap

lib/java/util/TreeMap.java:2327–2335  ·  view source on GitHub ↗

Returns a sorted map over a range of this sorted map with all keys that are greater than or equal to the specified startKey. Changes to the returned sorted map are reflected in this sorted map and vice versa. Note: The returned map will not allow an insertion of a key outside the specifi

(K startKey)

Source from the content-addressed store, hash-verified

2325 * and the specified key is outside of its range.
2326 */
2327 public SortedMap<K, V> tailMap(K startKey) {
2328 // Check for errors
2329 if (comparator == null) {
2330 toComparable(startKey).compareTo(startKey);
2331 } else {
2332 comparator.compare(startKey, startKey);
2333 }
2334 return new SubMap<K, V>(startKey, this);
2335 }
2336
2337 /**
2338 * Returns a collection of the values contained in this map. The collection

Callers

nothing calls this directly

Calls 3

toComparableMethod · 0.95
compareToMethod · 0.65
compareMethod · 0.65

Tested by

no test coverage detected