com.senn.magic.collections
Class WeakHashSet<S>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<S>
com.senn.magic.collections.GeneralSetFromMap<S>
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
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 interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
WeakHashSet
public WeakHashSet()
- Constructs an
WeakHashSet
instance
- See Also:
GeneralSetFromMap.GeneralSetFromMap(java.util.Map)