equal
deleted
inserted
replaced
3757 |
3757 |
3758 public int compare(Comparable<Object> c1, Comparable<Object> c2) { |
3758 public int compare(Comparable<Object> c1, Comparable<Object> c2) { |
3759 return c2.compareTo(c1); |
3759 return c2.compareTo(c1); |
3760 } |
3760 } |
3761 |
3761 |
3762 private Object readResolve() { return reverseOrder(); } |
3762 private Object readResolve() { return Collections.reverseOrder(); } |
3763 } |
3763 } |
3764 |
3764 |
3765 /** |
3765 /** |
3766 * Returns a comparator that imposes the reverse ordering of the specified |
3766 * Returns a comparator that imposes the reverse ordering of the specified |
3767 * comparator. If the specified comparator is {@code null}, this method is |
3767 * comparator. If the specified comparator is {@code null}, this method is |