2365 |
|
boolean fromInclusive, |
2366 |
|
E toElement, |
2367 |
|
boolean toInclusive) { |
2368 |
< |
return new ConcurrentSkipListSet<E> |
2369 |
< |
(m.subMap(fromElement, fromInclusive, |
2370 |
< |
toElement, toInclusive)); |
2368 |
> |
return new KeySet<E>(m.subMap(fromElement, fromInclusive, |
2369 |
> |
toElement, toInclusive)); |
2370 |
|
} |
2371 |
|
public NavigableSet<E> headSet(E toElement, boolean inclusive) { |
2372 |
< |
return new ConcurrentSkipListSet<E>(m.headMap(toElement, inclusive)); |
2372 |
> |
return new KeySet<E>(m.headMap(toElement, inclusive)); |
2373 |
|
} |
2374 |
|
public NavigableSet<E> tailSet(E fromElement, boolean inclusive) { |
2375 |
< |
return new ConcurrentSkipListSet<E>(m.tailMap(fromElement, inclusive)); |
2375 |
> |
return new KeySet<E>(m.tailMap(fromElement, inclusive)); |
2376 |
|
} |
2377 |
|
public NavigableSet<E> subSet(E fromElement, E toElement) { |
2378 |
|
return subSet(fromElement, true, toElement, false); |
2384 |
|
return tailSet(fromElement, true); |
2385 |
|
} |
2386 |
|
public NavigableSet<E> descendingSet() { |
2387 |
< |
return new ConcurrentSkipListSet(m.descendingMap()); |
2387 |
> |
return new KeySet(m.descendingMap()); |
2388 |
|
} |
2389 |
|
} |
2390 |
|
|