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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends E> c) boolean
addAll
(Collection<? extends E> c) void
clear()
clone()
Clone this objectboolean
boolean
containsAll
(Collection<?> c) boolean
get
(int index) int
hashCode()
int
private static int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
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, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
indexOf
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
subList
-
clone
Clone this object -
hashCode
public int hashCode() -
equals
-