[concurrency-interest] COWList snapshot.

Aaron Grunthal aaron.grunthal at infinite-source.de
Wed Feb 19 16:13:37 EST 2014


Why not combine Collections.unmodifiableList() with the copy constructor?

On 19.02.2014 22:04, Martin Buchholz wrote:
>
>
>
> On Wed, Feb 19, 2014 at 1:00 PM, Henri Tremblay
> <henri.tremblay at gmail.com <mailto:henri.tremblay at gmail.com>> wrote:
>
>     Collections.unmodifiableList(Arrays.asList(...)); ?
>
>
> Sure, it's easy to take a snapshot while making a copy.  But it's nice
> to have an O(1) snapshot.
>
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>



More information about the Concurrency-interest mailing list