Reason for use
Collections.synchronizedList(List<T> list)
lies in the fact that all methods except the iterator are synchronized using the list itself as a mutex, so you do not need to do
synchronized(list) {
list.add(type);
}
Instead, you can simply do
list.add(type);
and it will be thread safe.
, , - . , , . , , , .