Cleanup: StreamBuilder
Paul Sandoz
paul.sandoz at oracle.com
Mon Jul 8 12:00:47 PDT 2013
On Jul 8, 2013, at 8:36 PM, Brian Goetz <brian.goetz at Oracle.COM> wrote:
> The set of public classes and interfaces in java.util.stream now stands at:
>
> Collector
> Collector.Characteristics
> Collectors
> DoubleStream
> IntStream
> LongStream
> Stream
> StreamBuilder
> StreamBuilder.OfDouble
> StreamBuilder.OfInt
> StreamBuilder.OfLong
> StreamSupport
>
> As I've been working my way through the specs, it seems more natural to move the StreamBuilder classes to nested classes of XxxStream, because (a) there is now a static builder() method in those classes, (b) like the Stream clases, StreamBuilder.OfXxx does not extend StreamBuilder, and (c) it reduces the emphasis on these minor classes.
>
> So I propose:
>
> StreamBuilder -> Stream.Builder
> StreamBuilder.OfXxx -> XxxStream.Builder
>
+1
It was bugging me that StreamBuilder was so disproportionately visible in the stream package javadoc.
Paul.
More information about the lambda-libs-spec-experts
mailing list