j.u.Arrays setAll and parallelSetAll subrange note

Chris Hegarty chris.hegarty at oracle.com
Thu Feb 19 17:33:36 UTC 2015


It came up recently that java.util.Arrays was missing subrange overloads for setAll and parallelSetAll. These methods can be easily written with IntStream.range. Rather than adding eight new methods for this, it makes sense to point developers to IntStream.range. It seems reasonable to add a small note to these methods, promoting the use of IntStream. If someone is hunting around for a subrange setAll, then they will inevitable end up seeing this note.

http://cr.openjdk.java.net/~chegar/setAllNotes/webrev.00/webrev/

-Chris.


More information about the core-libs-dev mailing list