Collectors update (original) (raw)
Remi Forax forax at univ-mlv.fr
Tue Jan 29 17:24:55 PST 2013
- Previous message: Collectors update
- Next message: Collectors update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 01/30/2013 02:15 AM, Brian Goetz wrote:
The silly Partition class was also evil. We're in the "lesser of evils" business here. Would a Map<Boolean, T> be better? More boxing, but we can use an EnumMap-like implementation, and no ctor needed.
yes, wrapping an array as a Map<Boolean,T> will work, but I think I prefer a BooleanFunction (boolean -> T), there is less method to implement.
Rémi
- Previous message: Collectors update
- Next message: Collectors update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list