interface Comparator: doc typo, cut-paste from Comparable

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: