Stream reuse in superclass (original) (raw)
Jose jgetino at telefonica.net
Fri Apr 5 05:07:43 PDT 2013
- Previous message: hg: lambda/lambda/jdk: - Replace PARALLEL flag with a boolean value associated with
- Next message: Stream reuse in superclass
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The method
doSomethingWith(Stream s)
was using a forEach() that consumed the stream. Replacing it with a map() did the trick.
Thanks, I like the solution.
- Previous message: hg: lambda/lambda/jdk: - Replace PARALLEL flag with a boolean value associated with
- Next message: Stream reuse in superclass
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]