| Package | Description |
|---|---|
| java.util |
Back 2 Browser Bytecode Translator
Copyright (C) 2012 Jaroslav Tulach
|
| 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<T> |
Comparator.comparingLong(ToLongFunction<? super T> keyExtractor)
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<T> |
Comparator.thenComparingLong(ToLongFunction<? super T> keyExtractor)
Returns a lexicographic-order comparator with a function that
extracts a
long sort key. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,Double> |
Collectors.averagingLong(ToLongFunction<? super T> mapper)
Returns a
Collector that produces the arithmetic mean of a long-valued
function applied to the input elements. |
LongStream |
Stream.mapToLong(ToLongFunction<? super T> mapper)
Returns a
LongStream consisting of the results of applying the
given function to the elements of this stream. |
static <T> Collector<T,?,LongSummaryStatistics> |
Collectors.summarizingLong(ToLongFunction<? super T> mapper)
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<T,?,Long> |
Collectors.summingLong(ToLongFunction<? super T> mapper)
Returns a
Collector that produces the sum of a long-valued
function applied to the input elements. |
Copyright © 2021 API Design. All Rights Reserved.