cz.cuni.amis.utils.collections
Class HashSetClass

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

public class HashSetClass
extends HashSet<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.

Author:
Jimmy
See Also:
Serialized Form

Constructor Summary
HashSetClass()
           
 
Method Summary
 Class containsClass(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 Class containsClass(Class arg0)
Returns class that is part of 'arg0' ancestors/interface classes.

Parameters:
arg0 -
Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.