5、lic boolean addAll(Collection extends E> c) { 24. // Use linear-time version if applicable 1. if (m.size()==0 && c.size() > 0 && 2. c instanceof SortedSet && 3. m instanceof TreeMap) { 4. SortedSet extends E> set = (SortedSet extends E>) c; 5.
6、 TreeMap map = (TreeMap) m; 6. Comparator super E> cc = (Comparator super E>) set.comparator(); 7. Comparator super E> mc = map.comparator(); 8. if (cc==mc