(K startKey, K endKey)
| 723 | } |
| 724 | |
| 725 | public SortedMap<K, V> subMap(K startKey, K endKey) { |
| 726 | checkRange(startKey); |
| 727 | checkRange(endKey); |
| 728 | Comparator<? super K> c = backingMap.comparator(); |
| 729 | if (c == null) { |
| 730 | if (toComparable(startKey).compareTo(endKey) <= 0) { |
| 731 | return new SubMap<K, V>(startKey, backingMap, endKey); |
| 732 | } |
| 733 | } else { |
| 734 | if (c.compare(startKey, endKey) <= 0) { |
| 735 | return new SubMap<K, V>(startKey, backingMap, endKey); |
| 736 | } |
| 737 | } |
| 738 | throw new IllegalArgumentException(); |
| 739 | } |
| 740 | |
| 741 | public SortedMap<K, V> tailMap(K startKey) { |
| 742 | checkRange(startKey); |
nothing calls this directly
no test coverage detected