Doug Lea writes:
>Also, does CopyOnWriteArraySet guarantee order like LinkedHashSet? If
>> so, I don't think it's documented. I think it should be documented
>> either way, because it's ambiguous because the docs say it's based on
>> CopyOnWriteArrayList, which guarantees order as a List.
Thanks. You are right that it should explicitly say that it uses list
order; it is now only implicit.
Josh and Martin:
Any objections to overriding CopyOnWriteArraySet.iterator
javadoc, that now just inherits:
Returns an iterator over the elements contained in this collection.
To instead say:
Returns an iterator over the elements contained in this collection
in the order in which these elements were added.
###@###.### 2004-11-09 00:22:05 GMT