jdk/src/share/classes/java/util/Collections.java
changeset 16064 ef93558b0d63
parent 13795 73850c397272
child 16867 76499721c6c1
equal deleted inserted replaced
16063:18e7ee7b4301 16064:ef93558b0d63
  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