Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4277326

interface Comparator: doc typo, cut-paste from Comparable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • docs
    • beta
    • generic
    • generic



      Name: krT82822 Date: 09/30/99


      It looks like text was copied from Comparable but not
      completely modified for Comparator. The text is:

      "For the mathematically inclined, the relation that defines the total order that a given comparator c imposes on a
      given set of objects S is:

             {(x, y) such that c.compare((Object)x, (Object)y) <= 0}.
       
      The quotient for this total order is:

             {(x, y) such that x.compareTo((Object)y) == 0}."

      The x.compareTo should be rewritten using c.compare.


      PAGE REF: http://java.sun.com/products/jdk/1.3/docs/api/java/util/Comparator.html
      (Review ID: 95919)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: