Uses of Interface
java.util.function.ToDoubleFunction
Packages that use ToDoubleFunction
Package
Description
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
-
Uses of ToDoubleFunction in java.util
Methods in java.util with parameters of type ToDoubleFunctionModifier and TypeMethodDescriptionstatic <T> Comparator<T> Comparator.comparingDouble(ToDoubleFunction<? super T> keyExtractor) Accepts a function that extracts adoublesort key from a typeT, and returns aComparator<T>that compares by that sort key.default Comparator<T> Comparator.thenComparingDouble(ToDoubleFunction<? super T> keyExtractor) Returns a lexicographic-order comparator with a function that extracts adoublesort key. -
Uses of ToDoubleFunction in java.util.concurrent
Methods in java.util.concurrent with parameters of type ToDoubleFunctionModifier and TypeMethodDescriptiondoubleConcurrentHashMap.reduceEntriesToDouble(long parallelismThreshold, ToDoubleFunction<Map.Entry<K, V>> transformer, double basis, DoubleBinaryOperator reducer) Returns the result of accumulating the given transformation of all entries using the given reducer to combine values, and the given basis as an identity value.doubleConcurrentHashMap.reduceKeysToDouble(long parallelismThreshold, ToDoubleFunction<? super K> transformer, double basis, DoubleBinaryOperator reducer) Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, and the given basis as an identity value.doubleConcurrentHashMap.reduceValuesToDouble(long parallelismThreshold, ToDoubleFunction<? super V> transformer, double basis, DoubleBinaryOperator reducer) Returns the result of accumulating the given transformation of all values using the given reducer to combine values, and the given basis as an identity value. -
Uses of ToDoubleFunction in java.util.stream
Methods in java.util.stream with parameters of type ToDoubleFunctionModifier and TypeMethodDescriptionCollectors.averagingDouble(ToDoubleFunction<? super T> mapper) Returns aCollectorthat produces the arithmetic mean of a double-valued function applied to the input elements.Stream.mapToDouble(ToDoubleFunction<? super T> mapper) Returns aDoubleStreamconsisting of the results of applying the given function to the elements of this stream.static <T> Collector<T, ?, DoubleSummaryStatistics> Collectors.summarizingDouble(ToDoubleFunction<? super T> mapper) Returns aCollectorwhich applies andouble-producing mapping function to each input element, and returns summary statistics for the resulting values.Collectors.summingDouble(ToDoubleFunction<? super T> mapper) Returns aCollectorthat produces the sum of a double-valued function applied to the input elements.