com.senn.magic.collections
Class WeakHashSet<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.WeakHashSet<S>
Type Parameters:
S - the class of the objects in the set
All Implemented Interfaces:
Iterable<S>, Collection<S>, Set<S>

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

Set-implementation for WeakHashMap.
In Java 6 this has been put into a single method:
Collections.newSetFromMap(WeakHashMap<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
WeakHashSet()
          Constructs an WeakHashSet 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

WeakHashSet

public WeakHashSet()
Constructs an WeakHashSet instance

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