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

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

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

IdentityHashSet

public IdentityHashSet()
Constructs an IdentityHashSet instance

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