| Package | Description |
|---|---|
| java.util |
| Modifier and Type | Method and Description |
|---|---|
static <T> Comparator<T> |
Comparator.comparingInt(ToIntFunction<? super T> keyExtractor)
Accepts a function that extracts an
int sort key from a type
T, and returns a Comparator<T> that compares by that
sort key. |
default Comparator<T> |
Comparator.thenComparingInt(ToIntFunction<? super T> keyExtractor)
Returns a lexicographic-order comparator with a function that
extracts a
int sort key. |
Copyright © 2025 API Design. All Rights Reserved.