Package org.apache.felix.resolver.util
Class CopyOnWriteSet<E>
java.lang.Object
org.apache.felix.resolver.util.CopyOnWriteSet<E>
- All Implemented Interfaces:
Cloneable
,Iterable<E>
,Collection<E>
,Set<E>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCopyOnWriteSet
(Collection<? extends E> col) CopyOnWriteSet
(CopyOnWriteSet<? extends E> col) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
clone()
Clone this objectboolean
boolean
containsAll
(Collection<?> c) static <T> T[]
copyOf
(T[] original, int newLength) static <T,
U> T[] boolean
int
hashCode()
private static int
boolean
isEmpty()
iterator()
private void
remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
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.Set
spliterator
-
Field Details
-
data
Object[] data
-
-
Constructor Details
-
CopyOnWriteSet
public CopyOnWriteSet() -
CopyOnWriteSet
-
CopyOnWriteSet
-
-
Method Details
-
iterator
-
size
public int size() -
add
-
remove
private void remove(int index) -
toArray
-
toArray
public <T> T[] toArray(T[] a) -
equals
-
hashCode
public int hashCode() -
clone
Clone this object -
isEmpty
public boolean isEmpty() -
contains
-
remove
-
indexOf
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
copyOf
public static <T> T[] copyOf(T[] original, int newLength) -
copyOf
-