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

CompoundElement API cleanup

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 24
    • 24
    • core-libs
    • None

    Description

      CompoundElement was recently refitted to be Iterable; it has vestiges of Iteration support methods, such as `void forEachElement(Consumer<E> consumer)` and `Iterable<E> elements()`. In addition, there are some straightforward implementation improvements unlocked from this cleanup, such as using stream builder on foreach to create stream.

      Attachments

        Issue Links

          Activity

            People

              liach Chen Liang
              liach Chen Liang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: