Raw types warning
misterm at gmail.com
Thu Apr 18 13:47:45 PDT 2013
On Thu, Apr 18, 2013 at 5:45 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
> That's going pretty roundabout...
> How about:
> .map(id -> findDealer(id))
> .flatMap(d -> d.getBranches().stream())
> No reason to create intermediate garbage List<Dealer> if you can efficiently
> map from id to Dealer.
Except it hits the database multiple times instead of just one :-)
I wonder about the raw types warning though.
More information about the lambda-dev