I try to summarize double property of stream of objects:
items.collect(Collectors.summingDouble(double::doubleValue)
But I get cannot resolve method 'doubleValue'
Here is item definition:
Stream items= ... ;
Here is Item object definition:
public class Item {
private double price;
private Date date;
private String name;
}
How to calculate summarize property of stream of objects?