Cleanup: StreamBuilder
Remi Forax
forax at univ-mlv.fr
Mon Jul 8 11:52:26 PDT 2013
On 07/08/2013 08:36 PM, Brian Goetz 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
>
yes !
Rémi
More information about the lambda-libs-spec-experts
mailing list