ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentNavigableMap.java
Revision: 1.5
Committed: Sun Jun 26 00:10:58 2005 UTC (18 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.4: +34 -1 lines
Log Message:
Covariant returns from submap

File Contents

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