Loose-ends wrapup

Doug Lea dl at cs.oswego.edu
Sat May 11 03:33:05 PDT 2013

On 05/10/13 13:51, Brian Goetz wrote:
> 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.

If it causes people to be less prone to misinterpret, this
could instead be called ConcurrentHashBuffer.


> 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