com.senn.magic.collections
Class ConcurrentHashSet<S>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<S>
          extended by com.senn.magic.collections.GeneralSetFromMap<S>
              extended by com.senn.magic.collections.ConcurrentHashSet<S>
Type Parameters:
S - the class of the objects in the set
All Implemented Interfaces:
Iterable<S>, Collection<S>, Set<S>

public class ConcurrentHashSet<S>
extends GeneralSetFromMap<S>
implements Set<S>

Set-implementation for ConcurrentHashMap.
In Java 6 this has been put into a single method:
Collections.newSetFromMap(ConcurrentHashMap<S, Boolean>)
This class (and its subclasses) is basicly a wrapper for the same functionality.

Since:
3.3
Author:
Bart Thierens
Last modification: 02/06/2010

Field Summary
 
Fields inherited from class com.senn.magic.collections.GeneralSetFromMap
set
 
Constructor Summary
ConcurrentHashSet()
          Constructs an ConcurrentHashSet instance
 
Method Summary
 
Methods inherited from class com.senn.magic.collections.GeneralSetFromMap
add, addAll, clear, contains, containsAll, equals, getImplClass, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class java.util.AbstractCollection
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

ConcurrentHashSet

public ConcurrentHashSet()
Constructs an ConcurrentHashSet instance

See Also:
GeneralSetFromMap.GeneralSetFromMap(java.util.Map)