cz.cuni.amis.utils.collections
Class HashSetClass

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<java.lang.Class>
              extended by cz.cuni.amis.utils.collections.HashSetClass
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Class>, java.util.Collection<java.lang.Class>, java.util.Set<java.lang.Class>

public class HashSetClass
extends java.util.HashSet<java.lang.Class>

HashSet that provides extended meaning of the .containsClass(cls) method.

.contains(cls) first probes for class's ancestors and interfaces. The operation is then run against all of them.

See Also:
Serialized Form

Constructor Summary
HashSetClass()
           
 
Method Summary
 java.lang.Class containsClass(java.lang.Class arg0)
          Returns class that is part of 'arg0' ancestors/interface classes.
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

HashSetClass

public HashSetClass()
Method Detail

containsClass

public java.lang.Class containsClass(java.lang.Class arg0)
Returns class that is part of 'arg0' ancestors/interface classes.

Parameters:
arg0 -
Returns: