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

HashMap/IdentityHashMap should implement forEach(BiConsumer<? super K, ? super V> action)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • None
    • core-libs
    • None

    Description

      HashMap/IdentityHashMap use the default forEach method on Map but could provide more optimal implementations e.g. copied from the Spliterator.forEachRemaining implementations.

      Other map implementations are also be relevant, such as LinkedHashMap and ConcurrentHashMap.

      Attachments

        Issue Links

          Activity

            People

              mduigou Mike Duigou
              psandoz Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: