ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentNavigableMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentNavigableMap.java (file contents):
Revision 1.9 by dl, Thu Apr 20 20:34:50 2006 UTC vs.
Revision 1.10 by jsr166, Fri Apr 21 22:44:19 2006 UTC

# Line 47 | Line 47 | public interface ConcurrentNavigableMap<
47      ConcurrentNavigableMap<K,V> tailMap(K fromKey, boolean inclusive);
48  
49      /**
50 +     * Returns a view of the portion of this map whose keys range from
51 +     * {@code fromKey}, inclusive, to {@code toKey}, exclusive.  (If
52 +     * {@code fromKey} and {@code toKey} are equal, the returned map
53 +     * is empty.)  The returned map is backed by this map, so changes
54 +     * in the returned map are reflected in this map, and vice-versa.
55 +     * The returned map supports all optional map operations that this
56 +     * map supports.
57 +     *
58 +     * <p>The returned map will throw an {@code IllegalArgumentException}
59 +     * on an attempt to insert a key outside its range.
60 +     *
61 +     * <p>Equivalent to {@code subMap(fromKey, true, toKey, false)}.
62 +     *
63       * @throws ClassCastException       {@inheritDoc}
64       * @throws NullPointerException     {@inheritDoc}
65       * @throws IllegalArgumentException {@inheritDoc}
# Line 54 | Line 67 | public interface ConcurrentNavigableMap<
67      ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey);
68  
69      /**
70 +     * Returns a view of the portion of this map whose keys are
71 +     * strictly less than {@code toKey}.  The returned map is backed
72 +     * by this map, so changes in the returned map are reflected in
73 +     * this map, and vice-versa.  The returned map supports all
74 +     * optional map operations that this map supports.
75 +     *
76 +     * <p>The returned map will throw an {@code IllegalArgumentException}
77 +     * on an attempt to insert a key outside its range.
78 +     *
79 +     * <p>Equivalent to {@code headMap(toKey, false)}.
80 +     *
81       * @throws ClassCastException       {@inheritDoc}
82       * @throws NullPointerException     {@inheritDoc}
83       * @throws IllegalArgumentException {@inheritDoc}
# Line 61 | Line 85 | public interface ConcurrentNavigableMap<
85      ConcurrentNavigableMap<K,V> headMap(K toKey);
86  
87      /**
88 +     * Returns a view of the portion of this map whose keys are
89 +     * greater than or equal to {@code fromKey}.  The returned map is
90 +     * backed by this map, so changes in the returned map are
91 +     * reflected in this map, and vice-versa.  The returned map
92 +     * supports all optional map operations that this map supports.
93 +     *
94 +     * <p>The returned map will throw an {@code IllegalArgumentException}
95 +     * on an attempt to insert a key outside its range.
96 +     *
97 +     * <p>Equivalent to {@code tailMap(fromKey, true)}.
98 +     *
99       * @throws ClassCastException       {@inheritDoc}
100       * @throws NullPointerException     {@inheritDoc}
101       * @throws IllegalArgumentException {@inheritDoc}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines