1 |
/* |
2 |
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
* Expert Group and released to the public domain, as explained at |
4 |
* http://creativecommons.org/licenses/publicdomain |
5 |
*/ |
6 |
|
7 |
package java.util.concurrent; |
8 |
import java.util.*; |
9 |
|
10 |
/** |
11 |
* A {@link ConcurrentMap} supporting {@link NavigableMap} operations, |
12 |
* and recursively so for its navigable sub-maps. |
13 |
* |
14 |
* <p>This interface is a member of the |
15 |
* <a href="{@docRoot}/../guide/collections/index.html"> |
16 |
* Java Collections Framework</a>. |
17 |
* |
18 |
* @author Doug Lea |
19 |
* @param <K> the type of keys maintained by this map |
20 |
* @param <V> the type of mapped values |
21 |
* @since 1.6 |
22 |
*/ |
23 |
public interface ConcurrentNavigableMap<K,V> |
24 |
extends ConcurrentMap<K,V>, NavigableMap<K,V> |
25 |
{ |
26 |
/** |
27 |
* @throws ClassCastException {@inheritDoc} |
28 |
* @throws NullPointerException {@inheritDoc} |
29 |
* @throws IllegalArgumentException {@inheritDoc} |
30 |
*/ |
31 |
ConcurrentNavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, |
32 |
K toKey, boolean toInclusive); |
33 |
|
34 |
/** |
35 |
* @throws ClassCastException {@inheritDoc} |
36 |
* @throws NullPointerException {@inheritDoc} |
37 |
* @throws IllegalArgumentException {@inheritDoc} |
38 |
*/ |
39 |
ConcurrentNavigableMap<K,V> headMap(K toKey, boolean inclusive); |
40 |
|
41 |
|
42 |
/** |
43 |
* @throws ClassCastException {@inheritDoc} |
44 |
* @throws NullPointerException {@inheritDoc} |
45 |
* @throws IllegalArgumentException {@inheritDoc} |
46 |
*/ |
47 |
ConcurrentNavigableMap<K,V> tailMap(K fromKey, boolean inclusive); |
48 |
|
49 |
/** |
50 |
* @throws ClassCastException {@inheritDoc} |
51 |
* @throws NullPointerException {@inheritDoc} |
52 |
* @throws IllegalArgumentException {@inheritDoc} |
53 |
*/ |
54 |
ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey); |
55 |
|
56 |
/** |
57 |
* @throws ClassCastException {@inheritDoc} |
58 |
* @throws NullPointerException {@inheritDoc} |
59 |
* @throws IllegalArgumentException {@inheritDoc} |
60 |
*/ |
61 |
ConcurrentNavigableMap<K,V> headMap(K toKey); |
62 |
|
63 |
/** |
64 |
* @throws ClassCastException {@inheritDoc} |
65 |
* @throws NullPointerException {@inheritDoc} |
66 |
* @throws IllegalArgumentException {@inheritDoc} |
67 |
*/ |
68 |
ConcurrentNavigableMap<K,V> tailMap(K fromKey); |
69 |
|
70 |
ConcurrentNavigableMap<K,V> descendingMap(); |
71 |
} |