MCPcopy Index your code
hub / github.com/davidgiven/luje / headMap

Method headMap

lib/java/util/TreeMap.java:1342–1350  ·  view source on GitHub ↗

Returns a sorted map over a range of this sorted map with all keys that are less than the specified endKey. 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 specified range. @param

(K endKey)

Source from the content-addressed store, hash-verified

1340 * map and the specified key is outside of its range.
1341 */
1342 public SortedMap<K, V> headMap(K endKey) {
1343 // Check for errors
1344 if (comparator == null) {
1345 toComparable(endKey).compareTo(endKey);
1346 } else {
1347 comparator.compare(endKey, endKey);
1348 }
1349 return new SubMap<K, V>(this, endKey);
1350 }
1351
1352 /**
1353 * Returns a set of the keys contained in this map. The set is backed by

Callers

nothing calls this directly

Calls 3

toComparableMethod · 0.95
compareToMethod · 0.65
compareMethod · 0.65

Tested by

no test coverage detected