We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The standard java.util.Comparator provide few static methods to create a Comparator from an key extractor function:
static <T, U extends Comparable<U>> Comparator<T> comparing(Function<T, U> keyExtractor); static <T, U extends Comparable<U>> Comparator<T> comparing(Function<T, U> keyExtractor, Comparator<U> keyComparator); static <T> Comparator<T> comparingInt(ToIntFunction<T> keyExtractor); static <T> Comparator<T> comparingLong(ToLongFunction<T> keyExtractor); static <T> Comparator<T> comparingDouble(ToDoubleFunction<T> keyExtractor);
I find these functions very useful.
Will this be a nice additions to the primitive comparators in fastutil as well? For example in IntComparator. If so, I will be willing to add it :)
The text was updated successfully, but these errors were encountered:
Ok but you need to understand the macro system and write a generic implementation...
Sorry, something went wrong.
No branches or pull requests
The standard java.util.Comparator provide few static methods to create a Comparator from an key extractor function:
I find these functions very useful.
Will this be a nice additions to the primitive comparators in fastutil as well? For example in IntComparator.
If so, I will be willing to add it :)
The text was updated successfully, but these errors were encountered: