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

Improve stream support in memory segments

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: tbd_major
    • Component/s: tools

      Description

      While memory segments support spliterator, the support is unnecessarily user unfriendly, for two reasons:

      * the spliterator takes a layout argument that is expected to be a sequence layout matching the entire segment; in most cases, passing an element layout (e.g. viewing the segment as a flat array) is more convenient instead.

      * there is no convenience method to create a stream out of a segment - users have to resort to StreamSupport.stream(...) to do so.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: