Package org.apache.felix.resolver.util
Class CopyOnWriteList<E>
java.lang.Object
org.apache.felix.resolver.util.CopyOnWriteList<E>
- All Implemented Interfaces:
Cloneable,Iterable<E>,Collection<E>,List<E>,SequencedCollection<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 java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Field Details
-
data
Object[] data
-
-
Constructor Details
-
CopyOnWriteList
public CopyOnWriteList() -
CopyOnWriteList
-
CopyOnWriteList
-
-
Method Details
-
size
public int size() -
get
-
set
-
add
-
remove
-
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
indexOf
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void 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
public int hashCode() -
equals
-