title: Sum different values in one java stream lambda fuction
body: <p>I have a use case need to sum different feilds in this object so I code like this, can I put it in one stream?</p>
  
  <pre><code>int totalUnits = records.stream()
          .mapToInt(DynamoSalesAggregateSummaryRecord::getUnits).sum();
  int totalReturns = records.stream()
          .mapToInt(DynamoSalesAggregateSummaryRecord::getReturns).sum();
  int totalCancellations = records.stream()
          .mapToInt(DynamoSalesAggregateSummaryRecord::getCancellations).sum();
  BigDecimal totalRevenue = records.stream()
          .map(DynamoSalesAggregateSummaryRecord::getRevenue)
          .reduce(BigDecimal.ZERO, BigDecimal::add);
  BigDecimal totalRoyalties = records.stream()
          .map(DynamoSalesAggregateSummaryRecord::getRoyalties)
          .reduce(BigDecimal.ZERO, BigDecimal::add);
  </code></pre>