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 void
add(int index, T element)
boolean
add(T element)
boolean
addAll(int index, Collection<? extends T> c)
boolean
addAll(Collection<? extends T> c)
int
addAllAbsent(Collection<? extends T> c)
boolean
addIfAbsent(T element)
void
clear()
boolean
equals(Object o)
int
getModCount()
int
hashCode()
T
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
void
setModCount(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:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classCopyOnWriteArrayList<T>
-
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAll
in interfaceCollection<T>
- Specified by:
addAll
in interfaceList<T>
- Overrides:
addAll
in classCopyOnWriteArrayList<T>
-
addAll
public boolean addAll(int index, Collection<? extends T> c)
-
addAllAbsent
public int addAllAbsent(Collection<? extends T> c)
- Overrides:
addAllAbsent
in classCopyOnWriteArrayList<T>
-
addIfAbsent
public boolean addIfAbsent(T element)
- Overrides:
addIfAbsent
in classCopyOnWriteArrayList<T>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceList<T>
- Overrides:
clear
in classCopyOnWriteArrayList<T>
-
remove
public T remove(int index)
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceList<T>
- Overrides:
remove
in classCopyOnWriteArrayList<T>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<T>
- Specified by:
removeAll
in interfaceList<T>
- Overrides:
removeAll
in classCopyOnWriteArrayList<T>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<T>
- Specified by:
retainAll
in interfaceList<T>
- Overrides:
retainAll
in classCopyOnWriteArrayList<T>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<T>
- Specified by:
hashCode
in interfaceList<T>
- Overrides:
hashCode
in classCopyOnWriteArrayList<T>
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceCollection<T>
- Specified by:
equals
in interfaceList<T>
- Overrides:
equals
in classCopyOnWriteArrayList<T>
-
-