Returns a lexicographic-order comparator with a function that
extracts a int
sort key.
keyExtractor | the function used to extract the integer sort key |
int
sort key
NullPointerException | if the argument is null. |
comparingInt(ToIntFunction), thenComparing(Comparator)
@implSpec This default implementation behaves as if
thenComparing(comparingInt(keyExtractor))
.
Diagram: Comparator