[concurrency-interest] Suitable replacement for LinkedHashSet inutil.concurrent package

David Holmes dcholmes at optusnet.com.au
Sat May 13 06:19:12 EDT 2006

> Tutika Chakravarthy writes:
> I have seen javadocs for ConcurrentSkipListSet and
> CopyOnWriteArraySet. But both of them don't maintain
> the order of elements the way they are inserted into.

Why do you say CopyOnWriteArraySet doesn't maintain the order of insertion?
The docs don't say anything one way or another, but an implementation would
have to go out of its way to not return things in order.

David Holmes

More information about the Concurrency-interest mailing list