The static method, Collectors.summingDouble() returns a Collector which uses a provided mapper function to convert each input element of type T to to primitive double, and returns the sum of the resulting double values.
<T> Collector<T,?,Double> summingDouble(ToDoubleFunction<? super T> mapper)