Improve stream support in memory segments

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • tbd
    • Affects Version/s: repo-panama
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: