Best way of chaining reduce with Java 8 – stackoverflow.com

I have the following code that I'm trying to improve: BigDecimal total = entity.getAssociate().stream().map(Associates::getPropertyA) .reduce(BigDecimal.ZERO, BigDecimal::add); total = entity....

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Best way of chaining reduce with Java 8 – stackoverflow.com"