Does Collections.unmodifiableCollection(list) copy the collection?

Viewed 6596
private List list;

If we use Collections.unmodifiableCollection(list), will this return a copy of the collection, or is it faster than creating a copy? We could do other.addAll(list) but we have list of 600,000 object, so addAll is not so good.

Caller just needs a read-only collection.

3 Answers
Related