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

Improve stream support in memory segments

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • tbd
    • repo-panama
    • tools

      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.

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

              Created:
              Updated:
              Resolved: