# | Line 1689 | Line 1689 | public class TreeMap<K,V> | |
---|---|---|
1689 | } | |
1690 | ||
1691 | public NavigableMap<K,V> headMap(K toKey, boolean inclusive) { | |
1692 | < | if (!inClosedRange(toKey)) |
1692 | > | if (!inRange(toKey, inclusive)) |
1693 | throw new IllegalArgumentException("toKey out of range"); | |
1694 | return new AscendingSubMap(m, | |
1695 | fromStart, lo, loInclusive, |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |