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
Essentially syntactic sugar to provide parity to the other immutable map collectors when possible.
I believe this can be added relatively simply in https://github.com/google/guava/blob/master/guava/src/com/google/common/collect/ImmutableSortedMap.java:
public static <T, K extends Comparable<K>, V> Collector<T, ?, ImmutableSortedMap<K, V>> toImmutableSortedMap( Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) { return toImmutableSortedMap(Comparable::compareTo, keyFunction, valueFunction); }
And:
public static <T, K extends Comparable<K>, V> Collector<T, ?, ImmutableSortedMap<K, V>> toImmutableSortedMap( Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) { return toImmutableSortedMap(Comparable::compareTo, keyFunction, valueFunction, mergeFunction); }
The text was updated successfully, but these errors were encountered:
lowasser
No branches or pull requests
Essentially syntactic sugar to provide parity to the other immutable map collectors when possible.
I believe this can be added relatively simply in https://github.com/google/guava/blob/master/guava/src/com/google/common/collect/ImmutableSortedMap.java:
And:
The text was updated successfully, but these errors were encountered: