Parent Directory | Revision Log | Patch
revision 1.23.2.4 by gnu_andrew, Sat Jan 15 17:02:16 2005 UTC | revision 1.23.2.5 by gnu_andrew, Wed Feb 16 01:11:42 2005 UTC | |
---|---|---|
# | Line 729 public class TreeMap<K, V> extends Abstr | Line 729 public class TreeMap<K, V> extends Abstr |
729 | * or are not Comparable with natural ordering | * or are not Comparable with natural ordering |
730 | * @throws NullPointerException if o1 or o2 is null with natural ordering | * @throws NullPointerException if o1 or o2 is null with natural ordering |
731 | */ | */ |
732 | final int compare(Object o1, Object o2) | final int compare(K o1, K o2) |
733 | { | { |
734 | return (comparator == null | return (comparator == null |
735 | ? ((Comparable) o1).compareTo(o2) | ? ((Comparable) o1).compareTo(o2) |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |