Package org.apache.mina.util
Class ConcurrentHashSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.apache.mina.util.MapBackedSet<E>
org.apache.mina.util.ConcurrentHashSet<E>
- Type Parameters:
E- The type of the element stored in the set
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,Set<E>
A
ConcurrentHashMap-backed Set.- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.mina.util.MapBackedSet
map -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of ConcurrentHashSetConcurrentHashSet(Collection<E> collection) Creates a new instance of ConcurrentHashSet, initialized with the content of another collection -
Method Summary
Methods inherited from class org.apache.mina.util.MapBackedSet
clear, contains, iterator, remove, sizeMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.Set
addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ConcurrentHashSet
public ConcurrentHashSet()Creates a new instance of ConcurrentHashSet -
ConcurrentHashSet
Creates a new instance of ConcurrentHashSet, initialized with the content of another collection- Parameters:
collection- The collection to inject in this set
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceSet<E>- Overrides:
addin classMapBackedSet<E>
-