-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P3
-
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.
* 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.