Collectors update (original) (raw)
Brian Goetz brian.goetz at oracle.com
Tue Feb 5 08:53:42 PST 2013
- Previous message: explode
- Next message: Collectors update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
4. Rejigger Partition to return an array again, with an explicit lambda (which will likely be an array ctor ref) to make the array. Eliminated the silly Partition class. Please don't do that, it's pure evil. public static Collector<T, Collection[]> partitioningBy(Predicate predicate, IntFunction<Collection[]> arraySupplier) {
I've refactored this to make the partition collectors return Map<Boolean, X>.
- Previous message: explode
- Next message: Collectors update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list