1 |
dl |
1.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 |
jsr166 |
1.6 |
import java.util.concurrent.*; // for javadoc (till 6280605 is fixed) |
9 |
dl |
1.1 |
import java.util.*; |
10 |
|
|
|
11 |
|
|
/** |
12 |
dl |
1.5 |
* A {@link ConcurrentMap} supporting {@link NavigableMap} operations, |
13 |
|
|
* and recursively so for its navigable sub-maps. |
14 |
dl |
1.1 |
* |
15 |
jsr166 |
1.3 |
* <p>This interface is a member of the |
16 |
|
|
* <a href="{@docRoot}/../guide/collections/index.html"> |
17 |
|
|
* Java Collections Framework</a>. |
18 |
|
|
* |
19 |
dl |
1.1 |
* @author Doug Lea |
20 |
|
|
* @param <K> the type of keys maintained by this map |
21 |
jsr166 |
1.3 |
* @param <V> the type of mapped values |
22 |
|
|
* @since 1.6 |
23 |
dl |
1.1 |
*/ |
24 |
jsr166 |
1.3 |
public interface ConcurrentNavigableMap<K,V> |
25 |
|
|
extends ConcurrentMap<K,V>, NavigableMap<K,V> |
26 |
|
|
{ |
27 |
dl |
1.1 |
/** |
28 |
jsr166 |
1.3 |
* @throws ClassCastException {@inheritDoc} |
29 |
jsr166 |
1.4 |
* @throws NullPointerException {@inheritDoc} |
30 |
jsr166 |
1.3 |
* @throws IllegalArgumentException {@inheritDoc} |
31 |
dl |
1.1 |
*/ |
32 |
jsr166 |
1.3 |
ConcurrentNavigableMap<K,V> navigableSubMap(K fromKey, K toKey); |
33 |
dl |
1.1 |
|
34 |
|
|
/** |
35 |
jsr166 |
1.3 |
* @throws ClassCastException {@inheritDoc} |
36 |
jsr166 |
1.4 |
* @throws NullPointerException {@inheritDoc} |
37 |
jsr166 |
1.3 |
* @throws IllegalArgumentException {@inheritDoc} |
38 |
dl |
1.1 |
*/ |
39 |
jsr166 |
1.3 |
ConcurrentNavigableMap<K,V> navigableHeadMap(K toKey); |
40 |
dl |
1.1 |
|
41 |
|
|
/** |
42 |
jsr166 |
1.3 |
* @throws ClassCastException {@inheritDoc} |
43 |
jsr166 |
1.4 |
* @throws NullPointerException {@inheritDoc} |
44 |
jsr166 |
1.3 |
* @throws IllegalArgumentException {@inheritDoc} |
45 |
dl |
1.1 |
*/ |
46 |
jsr166 |
1.3 |
ConcurrentNavigableMap<K,V> navigableTailMap(K fromKey); |
47 |
dl |
1.5 |
|
48 |
|
|
|
49 |
|
|
/** |
50 |
|
|
* Equivalent to {@link #navigableSubMap}. |
51 |
|
|
* |
52 |
|
|
* <p>{@inheritDoc} |
53 |
jsr166 |
1.6 |
* |
54 |
dl |
1.5 |
* @throws ClassCastException {@inheritDoc} |
55 |
|
|
* @throws NullPointerException {@inheritDoc} |
56 |
|
|
* @throws IllegalArgumentException {@inheritDoc} |
57 |
|
|
*/ |
58 |
|
|
ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey); |
59 |
|
|
|
60 |
|
|
/** |
61 |
|
|
* Equivalent to {@link #navigableHeadMap}. |
62 |
|
|
* |
63 |
|
|
* <p>{@inheritDoc} |
64 |
jsr166 |
1.6 |
* |
65 |
dl |
1.5 |
* @throws ClassCastException {@inheritDoc} |
66 |
|
|
* @throws NullPointerException {@inheritDoc} |
67 |
|
|
* @throws IllegalArgumentException {@inheritDoc} |
68 |
|
|
*/ |
69 |
|
|
ConcurrentNavigableMap<K,V> headMap(K toKey); |
70 |
|
|
|
71 |
|
|
/** |
72 |
|
|
* Equivalent to {@link #navigableTailMap}. |
73 |
|
|
* |
74 |
|
|
* <p>{@inheritDoc} |
75 |
jsr166 |
1.6 |
* |
76 |
dl |
1.5 |
* @throws ClassCastException {@inheritDoc} |
77 |
|
|
* @throws NullPointerException {@inheritDoc} |
78 |
|
|
* @throws IllegalArgumentException {@inheritDoc} |
79 |
|
|
*/ |
80 |
|
|
ConcurrentNavigableMap<K,V> tailMap(K fromKey); |
81 |
|
|
|
82 |
dl |
1.1 |
} |