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 TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> c) void
clear()
private void
boolean
boolean
containsAll
(Collection<?> c) boolean
(package private) static <T> Set<T>
forCollection
(Collection<T> collection, ConvertingImpl converting) int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<X> X[]
toArray
(X[] a) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceSet<T>
-
addAll
-
retainAll
-
removeAll
-
hashCode
public int hashCode() -
equals
-
toString
-
clear
public void clear()
-