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 TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()clone()Clone this objectbooleanbooleancontainsAll(Collection<?> c) static <T> T[]copyOf(T[] original, int newLength) static <T,U> T[] booleaninthashCode()private static intbooleanisEmpty()iterator()private voidremove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()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 Set
spliterator
-
Field Details
-
data
Object[] data
-
-
Constructor Details
-
CopyOnWriteSet
public CopyOnWriteSet() -
CopyOnWriteSet
-
CopyOnWriteSet
-
-
Method Details
-
iterator
-
size
-
add
-
remove
private void remove(int index) -
toArray
-
toArray
-
equals
-
hashCode
-
clone
Clone this object -
isEmpty
-
contains
-
remove
-
indexOf
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-
clear
-
copyOf
public static <T> T[] copyOf(T[] original, int newLength) -
copyOf
-