Package org.osgi.util.converter
Class SetDelegate<T>
java.lang.Object
org.osgi.util.converter.SetDelegate<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()private voidbooleanbooleancontainsAll(Collection<?> c) boolean(package private) static <T> Set<T> forCollection(Collection<T> collection, ConvertingImpl converting) inthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<X> X[]toArray(X[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
spliterator
-
Field Details
-
delegate
-
cloned
private volatile boolean cloned -
convertingImpl
-
-
Constructor Details
-
SetDelegate
SetDelegate(Set<T> collection, ConvertingImpl converting)
-
-
Method Details
-
forCollection
-
cloneDelegate
private void cloneDelegate() -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <X> X[] toArray(X[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceSet<T>
-
addAll
-
retainAll
-
removeAll
-
hashCode
public int hashCode() -
equals
-
toString
-
clear
public void clear()
-