Uses of Interface
java.util.function.ToIntFunction
-
Packages that use ToIntFunction 软件包 描述 java.util 包含集合框架,一些国际化支持类,服务加载器,属性,随机数生成,字符串解析和扫描类,base64编码和解码,位数组和几个其他实用程序类。java.util.concurrent 实用类通常在并发编程中有用。java.util.stream 用于支持元素流上的功能样式操作的类,例如集合上的map-reduce转换。 -
-
Uses of ToIntFunction in java.util
Methods in java.util with parameters of type ToIntFunction 变量和类型 方法 描述 static <T> Comparator<T>Comparator. comparingInt(ToIntFunction<? super T> keyExtractor)接受从类型T中提取int排序键的T,并返回按该排序键进行比较的Comparator<T>。default Comparator<T>Comparator. thenComparingInt(ToIntFunction<? super T> keyExtractor)返回一个字典顺序比较器,其中包含一个提取int排序键的函数。 -
Uses of ToIntFunction in java.util.concurrent
Methods in java.util.concurrent with parameters of type ToIntFunction 变量和类型 方法 描述 intConcurrentHashMap. reduceEntriesToInt(long parallelismThreshold, ToIntFunction<Map.Entry<K,V>> transformer, int basis, IntBinaryOperator reducer)返回使用给定的reducer汇总所有条目的给定转换以组合值和给定基础作为标识值的结果。intConcurrentHashMap. reduceKeysToInt(long parallelismThreshold, ToIntFunction<? super K> transformer, int basis, IntBinaryOperator reducer)返回使用给定的reducer累加所有键的给定转换以组合值和给定的基础作为标识值的结果。intConcurrentHashMap. reduceValuesToInt(long parallelismThreshold, ToIntFunction<? super V> transformer, int basis, IntBinaryOperator reducer)返回使用给定的reducer累积所有值的给定转换以组合值和给定基础作为标识值的结果。 -
Uses of ToIntFunction in java.util.stream
Methods in java.util.stream with parameters of type ToIntFunction 变量和类型 方法 描述 static <T> Collector<T,?,Double>Collectors. averagingInt(ToIntFunction<? super T> mapper)返回Collector,它生成应用于输入元素的整数值函数的算术平均值。IntStreamStream. mapToInt(ToIntFunction<? super T> mapper)返回IntStream其中包含将给定函数应用于此流的元素的结果。static <T> Collector<T,?,IntSummaryStatistics>Collectors. summarizingInt(ToIntFunction<? super T> mapper)返回Collector,int映射函数应用于每个输入元素,并返回结果值的汇总统计信息。static <T> Collector<T,?,Integer>Collectors. summingInt(ToIntFunction<? super T> mapper)返回Collector,它生成应用于输入元素的整数值函数的总和。
-