I have this class:
public class MenuPrice {
private BigDecimal price;
private Date updateDate;
}
I want to group by Date,
List<MenuPrice> menuPrices = findAll(restaurant);
menuPrices
.parallelStream()
.collect(Collectors.groupingBy(MenuPrice::getUpdateDate()));
but I have a compilation error : Syntax error on token "::", invalid AssignmentOperator