| Package | Description |
|---|---|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Comparator |
Comparator.comparingLong(ToLongFunction
Accepts a function that extracts a
long sort key from a type
T, and returns a
Comparator<T> that compares by that sort key.
|
default Comparator |
Comparator.thenComparingLong(ToLongFunction
Returns a lexicographic-order comparator with a function that extracts a
long sort key.
|
| Modifier and Type | Method and Description |
|---|---|
long |
ConcurrentHashMap.reduceEntriesToLong(long parallelismThreshold, ToLongFunction
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.
|
long |
ConcurrentHashMap.reduceKeysToLong(long parallelismThreshold, ToLongFunction
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.
|
long |
ConcurrentHashMap.reduceValuesToLong(long parallelismThreshold, ToLongFunction
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.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector |
Collectors.averagingLong(ToLongFunction
Returns a
Collector that produces the arithmetic mean of a long-valued function applied to the input elements.
|
LongStream |
Stream.mapToLong(ToLongFunction
Returns a
LongStream consisting of the results of applying the given function to the elements of this stream.
|
static <T> Collector |
Collectors.summarizingLong(ToLongFunction
Returns a
Collector which applies an
long-producing mapping function to each input element, and returns summary statistics for the resulting values.
|
static <T> Collector |
Collectors.summingLong(ToLongFunction
Returns a
Collector that produces the sum of a long-valued function applied to the input elements.
|