RFR : 8025910 : (s) Rename Stream.substream(long) -> skip(long) and remove substream(long, long)

Henry Jen henry.jen at oracle.com
Tue Oct 15 14:13:07 PDT 2013


On 10/15/2013 01:18 PM, Mike Duigou wrote:
> Hello all;
> 
> As promised on the lambda-libs-spec-experts mailing list I have prepared a changeset which renames the single arg substream() to skip() and remove the two arg substream() method (aka "slice").
> 
> The rationale behind these changes is:
> 
>  - skip() is easier for new users to locate than substream().
>  - substream(long,long) has ambiguous semantics and duplicates skip().limit()
> 
> http://cr.openjdk.java.net/~mduigou/JDK-8025910/1/webrev/

The javadoc for skip() has reference to generate(Supplier), the link is
not correct for Primitive versions, they should be corresponding version
like IntSupplier.

Cheers,
Henry



More information about the lambda-libs-spec-observers mailing list