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

Comparing jsr166/src/jsr166x/ConcurrentNavigableMap.java (file contents):
Revision 1.5 by jsr166, Mon Dec 5 04:48:16 2011 UTC vs.
Revision 1.6 by jsr166, Sat Dec 29 23:55:19 2012 UTC

# Line 24 | Line 24 | public interface ConcurrentNavigableMap<
24       * is empty.)  The returned sorted map is backed by this map, so changes
25       * in the returned sorted map are reflected in this map, and vice-versa.
26       *
27 <     * @param fromKey low endpoint (inclusive) of the subMap.
28 <     * @param toKey high endpoint (exclusive) of the subMap.
27 >     * @param fromKey low endpoint (inclusive) of the subMap
28 >     * @param toKey high endpoint (exclusive) of the subMap
29       *
30       * @return a view of the portion of this map whose keys range from
31 <     * <tt>fromKey</tt>, inclusive, to <tt>toKey</tt>, exclusive.
31 >     * <tt>fromKey</tt>, inclusive, to <tt>toKey</tt>, exclusive
32       *
33       * @throws ClassCastException if <tt>fromKey</tt> and
34       * <tt>toKey</tt> cannot be compared to one another using this
35       * map's comparator (or, if the map has no comparator, using
36 <     * natural ordering).
36 >     * natural ordering)
37       * @throws IllegalArgumentException if <tt>fromKey</tt> is greater
38 <     * than <tt>toKey</tt>.
38 >     * than <tt>toKey</tt>
39       * @throws NullPointerException if <tt>fromKey</tt> or
40       * <tt>toKey</tt> is <tt>null</tt> and this map does not support
41 <     * <tt>null</tt> keys.
41 >     * <tt>null</tt> keys
42       */
43      public ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey);
44  
# Line 47 | Line 47 | public interface ConcurrentNavigableMap<
47       * than <tt>toKey</tt>.  The returned sorted map is backed by this map, so
48       * changes in the returned sorted map are reflected in this map, and
49       * vice-versa.
50 <     * @param toKey high endpoint (exclusive) of the headMap.
50 >     * @param toKey high endpoint (exclusive) of the headMap
51       * @return a view of the portion of this map whose keys are strictly
52 <     *                less than <tt>toKey</tt>.
52 >     *                less than <tt>toKey</tt>
53       *
54       * @throws ClassCastException if <tt>toKey</tt> is not compatible
55       *         with this map's comparator (or, if the map has no comparator,
56 <     *         if <tt>toKey</tt> does not implement <tt>Comparable</tt>).
56 >     *         if <tt>toKey</tt> does not implement <tt>Comparable</tt>)
57       * @throws NullPointerException if <tt>toKey</tt> is <tt>null</tt>
58 <     * and this map does not support <tt>null</tt> keys.
58 >     * and this map does not support <tt>null</tt> keys
59       */
60      public ConcurrentNavigableMap<K,V> headMap(K toKey);
61  
# Line 64 | Line 64 | public interface ConcurrentNavigableMap<
64       * greater than or equal to <tt>fromKey</tt>.  The returned sorted
65       * map is backed by this map, so changes in the returned sorted
66       * map are reflected in this map, and vice-versa.
67 <     * @param fromKey low endpoint (inclusive) of the tailMap.
67 >     * @param fromKey low endpoint (inclusive) of the tailMap
68       * @return a view of the portion of this map whose keys are greater
69 <     *                than or equal to <tt>fromKey</tt>.
69 >     *                than or equal to <tt>fromKey</tt>
70       * @throws ClassCastException if <tt>fromKey</tt> is not compatible
71       *         with this map's comparator (or, if the map has no comparator,
72 <     *         if <tt>fromKey</tt> does not implement <tt>Comparable</tt>).
72 >     *         if <tt>fromKey</tt> does not implement <tt>Comparable</tt>)
73       * @throws NullPointerException if <tt>fromKey</tt> is <tt>null</tt>
74 <     * and this map does not support <tt>null</tt> keys.
74 >     * and this map does not support <tt>null</tt> keys
75       */
76      public ConcurrentNavigableMap<K,V> tailMap(K fromKey);
77   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines