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 |
|
|
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 |
|
|