1558 |
|
if (!inRange(key)) |
1559 |
|
return false; |
1560 |
|
TreeMap.Entry<K,V> node = m.getEntry(key); |
1561 |
< |
if (node!=null && valEquals(node.getValue(),entry.getValue())){ |
1561 |
> |
if (node!=null && valEquals(node.getValue(), |
1562 |
> |
entry.getValue())) { |
1563 |
|
m.deleteEntry(node); |
1564 |
|
return true; |
1565 |
|
} |
1724 |
|
false, toKey, inclusive); |
1725 |
|
} |
1726 |
|
|
1727 |
< |
public NavigableMap<K,V> tailMap(K fromKey, boolean inclusive){ |
1727 |
> |
public NavigableMap<K,V> tailMap(K fromKey, boolean inclusive) { |
1728 |
|
if (!inRange(fromKey, inclusive)) |
1729 |
|
throw new IllegalArgumentException("fromKey out of range"); |
1730 |
|
return new AscendingSubMap(m, |
1805 |
|
toEnd, hi, hiInclusive); |
1806 |
|
} |
1807 |
|
|
1808 |
< |
public NavigableMap<K,V> tailMap(K fromKey, boolean inclusive){ |
1808 |
> |
public NavigableMap<K,V> tailMap(K fromKey, boolean inclusive) { |
1809 |
|
if (!inRange(fromKey, inclusive)) |
1810 |
|
throw new IllegalArgumentException("fromKey out of range"); |
1811 |
|
return new DescendingSubMap(m, |