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.36 by jsr166, Tue Jun 21 07:45:08 2005 UTC vs.
Revision 1.37 by dl, Sun Jun 26 00:11:18 2005 UTC

# Line 2240 | Line 2240 | public class ConcurrentSkipListMap<K,V>
2240      }
2241  
2242      /**
2243 <     * Equivalent to {@link #navigableSubMap} but with a return type
2244 <     * conforming to the <tt>SortedMap</tt> interface.
2245 <     *
2246 <     * <p>{@inheritDoc}
2243 >     * {@inheritDoc}
2244       *
2245       * @throws ClassCastException       {@inheritDoc}
2246       * @throws NullPointerException if <tt>fromKey</tt> or <tt>toKey</tt> is null
2247       * @throws IllegalArgumentException {@inheritDoc}
2248       */
2249 <    public SortedMap<K,V> subMap(K fromKey, K toKey) {
2249 >    public ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey) {
2250          return navigableSubMap(fromKey, toKey);
2251      }
2252  
2253      /**
2254 <     * Equivalent to {@link #navigableHeadMap} but with a return type
2258 <     * conforming to the <tt>SortedMap</tt> interface.
2259 <     *
2260 <     * <p>{@inheritDoc}
2254 >     * {@inheritDoc}
2255       *
2256       * @throws ClassCastException       {@inheritDoc}
2257       * @throws NullPointerException if <tt>toKey</tt> is null
2258       * @throws IllegalArgumentException {@inheritDoc}
2259       */
2260 <    public SortedMap<K,V> headMap(K toKey) {
2260 >    public ConcurrentNavigableMap<K,V> headMap(K toKey) {
2261          return navigableHeadMap(toKey);
2262      }
2263  
2264      /**
2265 <     * Equivalent to {@link #navigableTailMap} but with a return type
2272 <     * conforming to the <tt>SortedMap</tt> interface.
2273 <     *
2274 <     * <p>{@inheritDoc}
2265 >     * {@inheritDoc}
2266       *
2267       * @throws ClassCastException       {@inheritDoc}
2268       * @throws NullPointerException if <tt>fromKey</tt> is null
2269       * @throws IllegalArgumentException {@inheritDoc}
2270       */
2271 <    public SortedMap<K,V> tailMap(K fromKey) {
2271 >    public ConcurrentNavigableMap<K,V> tailMap(K fromKey) {
2272          return navigableTailMap(fromKey);
2273      }
2274  
# Line 3166 | Line 3157 | public class ConcurrentSkipListMap<K,V>
3157              return new ConcurrentSkipListSubMap<K,V>(m, fromKey, fence);
3158          }
3159  
3160 <        public SortedMap<K,V> subMap(K fromKey, K toKey) {
3160 >        public ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey) {
3161              return navigableSubMap(fromKey, toKey);
3162          }
3163  
3164 <        public SortedMap<K,V> headMap(K toKey) {
3164 >        public ConcurrentNavigableMap<K,V> headMap(K toKey) {
3165              return navigableHeadMap(toKey);
3166          }
3167  
3168 <        public SortedMap<K,V> tailMap(K fromKey) {
3168 >        public ConcurrentNavigableMap<K,V> tailMap(K fromKey) {
3169              return navigableTailMap(fromKey);
3170          }
3171  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines