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:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.Set<E>
public class ConcurrentHashSet<E> extends MapBackedSet<E>
AConcurrentHashMap-backedSet.- Author:
- Apache MINA Project
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.mina.util.MapBackedSet
map
-
-
Constructor Summary
Constructors Constructor Description ConcurrentHashSet()Creates a new instance of ConcurrentHashSetConcurrentHashSet(java.util.Collection<E> collection)Creates a new instance of ConcurrentHashSet, initialized with the content of another collection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E element)-
Methods inherited from class org.apache.mina.util.MapBackedSet
clear, contains, iterator, remove, size
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
ConcurrentHashSet
public ConcurrentHashSet()
Creates a new instance of ConcurrentHashSet
-
ConcurrentHashSet
public ConcurrentHashSet(java.util.Collection<E> collection)
Creates a new instance of ConcurrentHashSet, initialized with the content of another collection- Parameters:
collection- The collection to inject in this set
-
-