class SpendProfileTableCalculator {

    public Map<Long, BigDecimal> calculateRowTotal(Map<Long, List<BigDecimal>> tableData) {
        return simpleMapValue(tableData, rows ->
            rows.stream()
                    .reduce(BigDecimal.ZERO, BigDecimal::add)
        );
    }

}