polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: Stream creation...
Date Fri, 04 Sep 2015 12:01:52 GMT
I am also curious about this change;

-        ).distinct().forEach( unitOfWork::remove );
+        ).distinct().collect( Collectors.toList() ).stream().forEach(
unitOfWork::remove );

>From my understanding it is the same thing (except slower). Do you recall
what this is about?


On Fri, Sep 4, 2015 at 7:56 PM, Niclas Hedhman <niclas@hedhman.org> wrote:

> Kent,
> while reviewing, I saw
>
>     Arrays.asList( type ).stream()
>
> This can more efficiently be written as
>
>     Stream.of( type )
>
> Cheers
> --
> Niclas Hedhman, Software Developer
> http://zest.apache.org - New Energy for Java
>



-- 
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message