Loose-ends wrapup

Brian Goetz brian.goetz at oracle.com
Fri May 10 10:51:59 PDT 2013


Many slippery-slope questions come to mind -- doesn't this beg for:
  - Bag interface
  - Bag decorators (unmodifiableBag, synchronizedBag)
  - Non-concurrent implementation, perhaps based on HashSet

Given all that, though, a toBag() collector is nice, and sidesteps 
issues of merge functions.

On 5/10/2013 1:02 PM, Doug Lea wrote:
> On 05/09/13 15:14, Brian Goetz wrote:
>
>> What others have I missed?
>
> The lambda-dev post by John Rose reminded me that we were going
> to revisit the need for ConcurrentHashBag: A (massive) simplification
> of CHM that only conforms to Collection interface (so among
> other things, duplicates are allowed), and is handy
> for shoving unordered elements for concurrent aggregation.
> I've had a version of this sitting around for a year or so...
>
> -Doug
>
>


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