Package org.apache.cxf.common.util
Class ModCountCopyOnWriteArrayList<T>
- java.lang.Object
-
- java.util.concurrent.CopyOnWriteArrayList<T>
-
- org.apache.cxf.common.util.ModCountCopyOnWriteArrayList<T>
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess
public final class ModCountCopyOnWriteArrayList<T> extends CopyOnWriteArrayList<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModCountCopyOnWriteArrayList()ModCountCopyOnWriteArrayList(Collection<? extends T> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanadd(T element)booleanaddAll(int index, Collection<? extends T> c)booleanaddAll(Collection<? extends T> c)intaddAllAbsent(Collection<? extends T> c)booleanaddIfAbsent(T element)voidclear()booleanequals(Object o)intgetModCount()inthashCode()Tremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)voidsetModCount(int i)-
Methods inherited from class java.util.concurrent.CopyOnWriteArrayList
clone, contains, containsAll, forEach, get, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, set, size, sort, spliterator, subList, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
-
-
-
Constructor Detail
-
ModCountCopyOnWriteArrayList
public ModCountCopyOnWriteArrayList()
-
ModCountCopyOnWriteArrayList
public ModCountCopyOnWriteArrayList(Collection<? extends T> c)
-
-
Method Detail
-
getModCount
public int getModCount()
-
setModCount
public void setModCount(int i)
-
add
public void add(int index, T element)
-
add
public boolean add(T element)
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classCopyOnWriteArrayList<T>
-
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>- Overrides:
addAllin classCopyOnWriteArrayList<T>
-
addAll
public boolean addAll(int index, Collection<? extends T> c)
-
addAllAbsent
public int addAllAbsent(Collection<? extends T> c)
- Overrides:
addAllAbsentin classCopyOnWriteArrayList<T>
-
addIfAbsent
public boolean addIfAbsent(T element)
- Overrides:
addIfAbsentin classCopyOnWriteArrayList<T>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classCopyOnWriteArrayList<T>
-
remove
public T remove(int index)
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classCopyOnWriteArrayList<T>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<T>- Specified by:
removeAllin interfaceList<T>- Overrides:
removeAllin classCopyOnWriteArrayList<T>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<T>- Specified by:
retainAllin interfaceList<T>- Overrides:
retainAllin classCopyOnWriteArrayList<T>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceList<T>- Overrides:
hashCodein classCopyOnWriteArrayList<T>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection<T>- Specified by:
equalsin interfaceList<T>- Overrides:
equalsin classCopyOnWriteArrayList<T>
-
-