Collectors update

Remi Forax forax at univ-mlv.fr
Tue Jan 29 17:24:55 PST 2013


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



More information about the lambda-libs-spec-experts mailing list