Math.min() and Math.max() extension

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 1.2.2
    • Component/s: core-libs
    • x86
    • windows_95

      Name: rlT66838 Date: 07/15/99


      Adding the following two methods to the Math class would
      increase the consistency and convenient of writing code in
      the Java language.Implementing the Comparable interface is the
      minimum requirement to determine the results of both methods
      listed below.

      public Comparable min(Comparable a, Comparable b){}

      and

      public Comparable max(Comparable a, Comparable b){}
      (Review ID: 85641)
      ======================================================================

            Assignee:
            Joe Darcy
            Reporter:
            Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: