ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java (file contents):
Revision 1.55 by jsr166, Sun May 18 23:47:56 2008 UTC vs.
Revision 1.56 by jsr166, Thu Mar 26 19:07:33 2009 UTC

# Line 2365 | Line 2365 | public class ConcurrentSkipListMap<K,V>
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);
# Line 2385 | Line 2384 | public class ConcurrentSkipListMap<K,V>
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines