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

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

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

    Methods in java.util with parameters of type ToDoubleFunction
    Modifier and Type | Method and Description
    --- | ---
    `static <T> Comparator<T>` | Comparator.`comparingDouble(ToDoubleFunction<? super T> keyExtractor)` Accepts a function that extracts a `double` sort key from a type `T`, and returns a `Comparator<T>` that compares by that sort key.
    `default Comparator<T>` | Comparator.`thenComparingDouble(ToDoubleFunction<? super T> keyExtractor)` Returns a lexicographic-order comparator with a function that extracts a `double` sort key.

Copyright © 2025 API Design. All Rights Reserved.