软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
static <T> Comparator<T> |
Comparator.comparingInt(ToIntFunction<? super T> keyExtractor)
接受这一类型的
int 提取物
T 排序键的功能,并返回一个
Comparator<T> 比较的排序关键字。
|
default Comparator<T> |
Comparator.thenComparingInt(ToIntFunction<? super T> keyExtractor)
返回一个具有提取
int 排序关键字功能字典序比较。
|
Modifier and Type | Method and Description |
---|---|
int |
ConcurrentHashMap.reduceEntriesToInt(long parallelismThreshold, ToIntFunction<Map.Entry<K,V>> transformer, int basis, IntBinaryOperator reducer)
返回使用给定的减速器组合值,并给定的基础作为标识值的所有条目的给定转换的结果。
|
int |
ConcurrentHashMap.reduceKeysToInt(long parallelismThreshold, ToIntFunction<? super K> transformer, int basis, IntBinaryOperator reducer)
返回累积给定的所有键的给定转换的结果,使用给定的减速器组合值,和给定的基础作为一个标识值。
|
int |
ConcurrentHashMap.reduceValuesToInt(long parallelismThreshold, ToIntFunction<? super V> transformer, int basis, IntBinaryOperator reducer)
返回累积给定的所有值的给定值,使用给定的减速器组合值,和给定的基础作为一个身份值的结果。
|
Modifier and Type | Method and Description |
---|---|
static <T> Collector<T,?,Double> |
Collectors.averagingInt(ToIntFunction<? super T> mapper)
返回一个
Collector 产生一个整数的值函数应用于输入元素的算术平均值。
|
IntStream |
Stream.mapToInt(ToIntFunction<? super T> mapper)
返回一个包含应用给定的功能,该流的元素的结果
IntStream 。
|
static <T> Collector<T,?,IntSummaryStatistics> |
Collectors.summarizingInt(ToIntFunction<? super T> mapper)
返回一个
Collector 采用
int -producing映射功能,每个输入元素,并返回结果值汇总统计。
|
static <T> Collector<T,?,Integer> |
Collectors.summingInt(ToIntFunction<? super T> mapper)
返回一个
Collector 产生一个整数的函数应用于输入元素的总和。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.