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)
| 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 |
nothing calls this directly
no test coverage detected