org.jboss.webbeans.util.collections
Class ConcurrentList<E>

java.lang.Object
  extended by java.util.concurrent.CopyOnWriteArrayList<E>
      extended by org.jboss.webbeans.util.collections.ConcurrentList<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess, ConcurrentCollection<E>

public class ConcurrentList<E>
extends java.util.concurrent.CopyOnWriteArrayList<E>
implements ConcurrentCollection<E>

Implementation of ConcurrentCollection using a CopyOnWriteArrayList

Author:
Pete Muir
See Also:
Serialized Form

Constructor Summary
ConcurrentList()
           
ConcurrentList(java.util.Collection<? extends E> collection)
           
ConcurrentList(E[] array)
           
 
Method Summary
static
<E> ConcurrentList<E>
emptyList()
           
 
Methods inherited from class java.util.concurrent.CopyOnWriteArrayList
add, add, addAll, addAll, addAllAbsent, addIfAbsent, clear, clone, contains, containsAll, equals, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.webbeans.util.collections.ConcurrentCollection
addAllAbsent, addIfAbsent
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

ConcurrentList

public ConcurrentList()

ConcurrentList

public ConcurrentList(java.util.Collection<? extends E> collection)

ConcurrentList

public ConcurrentList(E[] array)
Method Detail

emptyList

public static <E> ConcurrentList<E> emptyList()


Copyright © 2011. All Rights Reserved.