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

Comparing jsr166/src/main/java/util/TreeMap.java (file contents):
Revision 1.2 by dl, Fri Dec 31 13:00:33 2004 UTC vs.
Revision 1.3 by dl, Sun Mar 6 12:06:17 2005 UTC

# Line 203 | Line 203 | public class TreeMap<K,V>
203       *            specified key.
204       * @throws ClassCastException if the key cannot be compared with the keys
205       *                  currently in the map.
206 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
206 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
207       *                  natural ordering, or its comparator does not tolerate
208       *            <tt>null</tt> keys.
209       */
# Line 260 | Line 260 | public class TreeMap<K,V>
260       * @param key key whose associated value is to be returned.
261       * @return the value to which this map maps the specified key, or
262       *               <tt>null</tt> if the map contains no mapping for the key.
263 <     * @throws    ClassCastException key cannot be compared with the keys
263 >     * @throws    ClassCastException if key cannot be compared with the keys
264       *                  currently in the map.
265 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
265 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
266       *                  natural ordering, or its comparator does not tolerate
267       *                  <tt>null</tt> keys.
268       *
# Line 343 | Line 343 | public class TreeMap<K,V>
343       *                does not contain an entry for the key.
344       * @throws ClassCastException if the key cannot be compared with the keys
345       *                  currently in the map.
346 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
346 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
347       *                  natural order, or its comparator does not tolerate *
348       *                  <tt>null</tt> keys.
349       */
# Line 546 | Line 546 | public class TreeMap<K,V>
546       *         if there was no mapping for key.  A <tt>null</tt> return can
547       *         also indicate that the map previously associated <tt>null</tt>
548       *         with the specified key.
549 <     * @throws    ClassCastException key cannot be compared with the keys
549 >     * @throws    ClassCastException if key cannot be compared with the keys
550       *            currently in the map.
551 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
551 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
552       *         natural order, or its comparator does not tolerate
553       *         <tt>null</tt> keys.
554       */
# Line 596 | Line 596 | public class TreeMap<K,V>
596       *         also indicate that the map previously associated
597       *         <tt>null</tt> with the specified key.
598       *
599 <     * @throws    ClassCastException key cannot be compared with the keys
599 >     * @throws    ClassCastException if key cannot be compared with the keys
600       *            currently in the map.
601 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
601 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
602       *         natural order, or its comparator does not tolerate
603       *         <tt>null</tt> keys.
604       */
# Line 723 | Line 723 | public class TreeMap<K,V>
723       * <tt>null</tt> if there is no such Entry.
724       * @throws ClassCastException if key cannot be compared with the
725       * keys currently in the map.
726 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
726 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
727       *         natural order, or its comparator does not tolerate
728       *         <tt>null</tt> keys.
729       */
# Line 742 | Line 742 | public class TreeMap<K,V>
742       * if there is no such key.
743       * @throws ClassCastException if key cannot be compared with the keys
744       *            currently in the map.
745 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
745 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
746       *         natural order, or its comparator does not tolerate
747       *         <tt>null</tt> keys.
748       */
# Line 763 | Line 763 | public class TreeMap<K,V>
763       * if there is no such Entry.
764       * @throws ClassCastException if key cannot be compared with the keys
765       *            currently in the map.
766 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
766 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
767       *         natural order, or its comparator does not tolerate
768       *         <tt>null</tt> keys.
769       */
# Line 782 | Line 782 | public class TreeMap<K,V>
782       * such key.
783       * @throws ClassCastException if key cannot be compared with the keys
784       *            currently in the map.
785 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
785 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
786       *         natural order, or its comparator does not tolerate
787       *         <tt>null</tt> keys.
788       */
# Line 801 | Line 801 | public class TreeMap<K,V>
801       * <tt>null</tt> if there is no such Entry.
802       * @throws ClassCastException if key cannot be compared with the keys
803       *            currently in the map.
804 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
804 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
805       *         natural order, or its comparator does not tolerate
806       *         <tt>null</tt> keys.
807       */
# Line 819 | Line 819 | public class TreeMap<K,V>
819       * <tt>null</tt> if there is no such key.
820       * @throws ClassCastException if key cannot be compared with the keys
821       *            currently in the map.
822 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
822 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
823       *         natural order, or its comparator does not tolerate
824       *         <tt>null</tt> keys.
825       */
# Line 838 | Line 838 | public class TreeMap<K,V>
838       * key, or <tt>null</tt> if there is no such Entry.
839       * @throws ClassCastException if key cannot be compared with the keys
840       *            currently in the map.
841 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
841 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
842       *         natural order, or its comparator does not tolerate
843       *         <tt>null</tt> keys.
844       */
# Line 856 | Line 856 | public class TreeMap<K,V>
856       * key, or <tt>null</tt> if there is no such key.
857       * @throws ClassCastException if key cannot be compared with the keys
858       *            currently in the map.
859 <     * @throws NullPointerException key is <tt>null</tt> and this map uses
859 >     * @throws NullPointerException if key is <tt>null</tt> and this map uses
860       *         natural order, or its comparator does not tolerate
861       *         <tt>null</tt> keys.
862       */
# Line 1026 | Line 1026 | public class TreeMap<K,V>
1026  
1027      /**
1028       * Returns a set view of the mappings contained in this map.  The
1029 <     * set's iterator returns the mappings in descrending key order.
1029 >     * set's iterator returns the mappings in descending key order.
1030       * Each element in the returned set is a <tt>Map.Entry</tt>.  The
1031       * set is backed by this map, so changes to this map are reflected
1032       * in the set, and vice-versa.  The set supports element removal,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines