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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentSkipListSet.java (file contents):
Revision 1.3 by dl, Tue Mar 22 01:30:18 2005 UTC vs.
Revision 1.4 by dl, Tue Mar 22 16:48:38 2005 UTC

# Line 477 | Line 477 | public class ConcurrentSkipListSet<E>
477       *         <tt>toElement</tt> is <tt>null</tt>.
478       */
479      public SortedSet<E> subSet(E fromElement, E toElement) {
480 <        return new ConcurrentSkipListSubSet<E>(m, fromElement, toElement);
480 >        return navigableSubSet(fromElement, toElement);
481      }
482  
483      /**
# Line 492 | Line 492 | public class ConcurrentSkipListSet<E>
492       * @throws NullPointerException if <tt>toElement</tt> is <tt>null</tt>.
493       */
494      public SortedSet<E> headSet(E toElement) {
495 <        return new ConcurrentSkipListSubSet<E>(m, null, toElement);
495 >        return navigableHeadSet(toElement);
496      }
497  
498  
# Line 509 | Line 509 | public class ConcurrentSkipListSet<E>
509       * @throws NullPointerException if <tt>fromElement</tt> is <tt>null</tt>.
510       */
511      public SortedSet<E> tailSet(E fromElement) {
512 <        return new ConcurrentSkipListSubSet<E>(m, fromElement, null);
512 >        return navigableTailSet(fromElement);
513      }
514  
515      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines