Apache CXF API

org.apache.cxf.common.util
Class ModCountCopyOnWriteArrayList<T>

java.lang.Object
  extended by java.util.concurrent.CopyOnWriteArrayList<T>
      extended by org.apache.cxf.common.util.ModCountCopyOnWriteArrayList<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

public final class ModCountCopyOnWriteArrayList<T>
extends java.util.concurrent.CopyOnWriteArrayList<T>

See Also:
Serialized Form

Constructor Summary
ModCountCopyOnWriteArrayList()
           
ModCountCopyOnWriteArrayList(java.util.Collection<? extends T> c)
           
 
Method Summary
 void add(int index, T element)
           
 boolean add(T element)
           
 boolean addAll(java.util.Collection<? extends T> c)
           
 boolean addAll(int index, java.util.Collection<? extends T> c)
           
 int addAllAbsent(java.util.Collection<? extends T> c)
           
 boolean addIfAbsent(T element)
           
 void clear()
           
 int getModCount()
           
 T remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection c)
           
 boolean retainAll(java.util.Collection c)
           
 void setModCount(int i)
           
 
Methods inherited from class java.util.concurrent.CopyOnWriteArrayList
clone, contains, containsAll, equals, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, set, size, subList, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModCountCopyOnWriteArrayList

public ModCountCopyOnWriteArrayList()

ModCountCopyOnWriteArrayList

public ModCountCopyOnWriteArrayList(java.util.Collection<? extends T> c)
Method Detail

getModCount

public int getModCount()

setModCount

public void setModCount(int i)

add

public void add(int index,
                T element)
Specified by:
add in interface java.util.List<T>
Overrides:
add in class java.util.concurrent.CopyOnWriteArrayList<T>

add

public boolean add(T element)
Specified by:
add in interface java.util.Collection<T>
Specified by:
add in interface java.util.List<T>
Overrides:
add in class java.util.concurrent.CopyOnWriteArrayList<T>

addAll

public boolean addAll(java.util.Collection<? extends T> c)
Specified by:
addAll in interface java.util.Collection<T>
Specified by:
addAll in interface java.util.List<T>
Overrides:
addAll in class java.util.concurrent.CopyOnWriteArrayList<T>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends T> c)
Specified by:
addAll in interface java.util.List<T>
Overrides:
addAll in class java.util.concurrent.CopyOnWriteArrayList<T>

addAllAbsent

public int addAllAbsent(java.util.Collection<? extends T> c)
Overrides:
addAllAbsent in class java.util.concurrent.CopyOnWriteArrayList<T>

addIfAbsent

public boolean addIfAbsent(T element)
Overrides:
addIfAbsent in class java.util.concurrent.CopyOnWriteArrayList<T>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<T>
Specified by:
clear in interface java.util.List<T>
Overrides:
clear in class java.util.concurrent.CopyOnWriteArrayList<T>

remove

public T remove(int index)
Specified by:
remove in interface java.util.List<T>
Overrides:
remove in class java.util.concurrent.CopyOnWriteArrayList<T>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<T>
Specified by:
remove in interface java.util.List<T>
Overrides:
remove in class java.util.concurrent.CopyOnWriteArrayList<T>

removeAll

public boolean removeAll(java.util.Collection c)
Specified by:
removeAll in interface java.util.Collection<T>
Specified by:
removeAll in interface java.util.List<T>
Overrides:
removeAll in class java.util.concurrent.CopyOnWriteArrayList<T>

retainAll

public boolean retainAll(java.util.Collection c)
Specified by:
retainAll in interface java.util.Collection<T>
Specified by:
retainAll in interface java.util.List<T>
Overrides:
retainAll in class java.util.concurrent.CopyOnWriteArrayList<T>

Apache CXF API

Apache CXF