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>
-
Field Summary
FieldsFields inherited from class 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 AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface 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>
-