类的用途
java.util.LongSummaryStatistics
使用 LongSummaryStatistics 的包
包
描述
包含集合框架、一些国际化支持类、服务加载器、属性、随机数生成、字符串解析和扫描类、base64 编码和解码、位数组和几个杂项实用程序类。
支持对元素流进行函数式操作的类,例如对集合的 map-reduce 转换。
-
LongSummaryStatistics 在 java.util 中的用法
java.util 中的方法,参数类型为 LongSummaryStatistics修饰符和类型方法描述voidLongSummaryStatistics.combine(LongSummaryStatistics other) 将另一个LongSummaryStatistics的状态组合到这个中。 -
LongSummaryStatistics 在 java.util.stream 中的用法
返回类型中包含 LongSummaryStatistics 类型参数的 java.util.stream 中的方法修饰符和类型方法描述static <T> Collector<T,?, LongSummaryStatistics> Collectors.summarizingLong(ToLongFunction<? super T> mapper) 返回一个Collector,它将long生成的映射函数应用于每个输入元素,并返回结果值的汇总统计信息。