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 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 java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods 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:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
copyOf
public static <T> T[] copyOf(T[] original, int newLength) -
copyOf
-