Class CopyOnWriteList<E>
java.lang.Object
org.apache.felix.resolver.util.CopyOnWriteList<E>
- All Implemented Interfaces:
Cloneable, Iterable<E>, Collection<E>, List<E>
- Direct Known Subclasses:
ShadowList
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCopyOnWriteList(Collection<? extends E> col) CopyOnWriteList(CopyOnWriteList<? extends E> col) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends E> c) booleanaddAll(Collection<? extends E> c) voidclear()clone()Clone this objectbooleanbooleancontainsAll(Collection<?> c) booleanget(int index) inthashCode()intprivate static intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface List
replaceAll, sort, spliterator
-
Field Details
-
data
Object[] data
-
-
Constructor Details
-
CopyOnWriteList
public CopyOnWriteList() -
CopyOnWriteList
-
CopyOnWriteList
-
-
Method Details
-
size
-
get
-
set
-
add
-
remove
-
isEmpty
-
contains
-
iterator
-
toArray
-
toArray
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
indexOf
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
clone
Clone this object -
hashCode
-
equals
-