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

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

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

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

Copyright © 2025 API Design. All Rights Reserved.