Into (original) (raw)
Raab, Donald Donald.Raab at gs.com
Wed Dec 26 07:46:43 PST 2012
- Previous message: Into
- Next message: Into
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
We have methods to toSortedSet() and toSortedMap() that return SortedSet and SortedMap (as the names imply). We remain compatible back to Java 5, where NavigableSet and NavigableMap do not exist.
I would request either calling the methods toNavigableSet()/toNavigableMap() and returning NavigableSet/NavigableMap or having both toSorted and toNavigable forms and returning the appropriately named types.
Object[] toArray(); Set toSet(); List toList(); List toRandomAccessList(); List toSortedList(Comparator<? super T> comparator); List toSortedList(); NavigableSet toSortedSet(); NavigableSet toSortedSet(Comparator<? super T> comparator); Collection toBag(); // unordered, possible dups Map<K,T> toMap(Function<? super T,K> keyFn, BinaryOperator mergeFn); Map<K,<Collection> toMap(Function<? super T,K> keyFn); NavigableMap<K,T> toSortedMap(Function<? super T,K> keyFn, Comparator<? super K> comparator, BinaryOperator mergeFn); NavigableMap<K,Collection> toSortedMap(Function<? super T,K> keyFn, Comparator<? super K> comparator);
- Previous message: Into
- Next message: Into
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-experts mailing list