Class ConcurrentList<T>

java.lang.Object
com.pnfsoftware.jeb.util.collect.ConcurrentList<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>

@Ser public class ConcurrentList<T> extends Object implements List<T>
A concurrent version of ArrayList. Unlike CopyOnWriteArrayList, only iterator-returning operations return defensive copies. Other write operations (addition, insertion, deletion) do not generate defensive copies. Also contains safe versions of add/set/get for convenience. Performing much better than CopyOnWriteArrayList if write operations are frequent; get() operations are slightly slower than CopyOnWriteArrayList's, so if they make up the majority of the invocations, CopyOnWriteArrayList remains the best option.