ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentNavigableMap.java
Revision: 1.9
Committed: Thu Apr 20 20:34:50 2006 UTC (18 years, 1 month ago) by dl
Branch: MAIN
Changes since 1.8: +4 -4 lines
Log Message:
Simplify Navigable method names

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 dl 1.9 ConcurrentNavigableMap<K,V> subMap(K fromKey, boolean fromInclusive,
32     K toKey, boolean toInclusive);
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 dl 1.9 ConcurrentNavigableMap<K,V> headMap(K toKey, boolean inclusive);
40 dl 1.8
41 dl 1.1
42     /**
43 jsr166 1.3 * @throws ClassCastException {@inheritDoc}
44 jsr166 1.4 * @throws NullPointerException {@inheritDoc}
45 jsr166 1.3 * @throws IllegalArgumentException {@inheritDoc}
46 dl 1.1 */
47 dl 1.9 ConcurrentNavigableMap<K,V> tailMap(K fromKey, boolean inclusive);
48 dl 1.5
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 dl 1.8 ConcurrentNavigableMap<K,V> descendingMap();
71 dl 1.1 }