예제 #1
0
 public List<String> findPriceParallel(String product) {
   return shops
       .parallelStream()
       .map(shop -> shop.getPrice(product))
       .map(Quote::parse)
       .map(Discount::applyDiscount)
       .collect(Collectors.<String>toList());
 }