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

(coll) Add java.util.Arrays.binarySearch(a, key, fromIndex, toIndex)

    Details

    • Subcomponent:
    • Resolved In Build:
      b83
    • CPU:
      generic, x86
    • OS:
      generic, linux, windows_nt
    • Verification:
      Verified

      Description

      Name: krT82822 Date: 01/24/2000


      java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, native threads, symcjit)

      Since it is possible to sort a part of the array, it should be possible to
      search a part of the array.

      In my case, I created an empty Object array which is gradually filled in, but
      not always to capacity. I can sort the filled entries, but I can't search
      through them without copying them first to a new array, which I'd rather not do
      for performance reasons.

      Modyfing binarySearch to acommodate this feature is trivial.
      (Review ID: 100004)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sseligmasunw Scott Seligman (Inactive)
                Reporter:
                kryansunw Kevin Ryan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: