## Uses of Interface
java.util.function.ToIntFunction

- Packages that use ToIntFunction
  Package | Description
  --- | ---
  java.util |

- - ### Uses of ToIntFunction in java.util

    Methods in java.util with parameters of type ToIntFunction
    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.