|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.datastructure.ClassSet
Represents a set of classes. User can use isSubSetOf() to detect whether a given class is subclass of a class in the class set
Constructor Summary | |
ClassSet()
{@inheritDoc} |
|
ClassSet(java.util.Collection c)
{@inheritDoc} |
Method Summary | |
void |
add(java.lang.Class c)
Add the class |
void |
addAll(java.util.Collection classes)
Add all in the classes to the ClassSet |
java.util.Set |
getClasses()
Get the classes |
boolean |
isSubclassOfClasses(java.lang.Class c)
Check whether the class is subclass of one of the class in the class set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassSet()
public ClassSet(java.util.Collection c)
Method Detail |
public void addAll(java.util.Collection classes)
classes
- the collection containing the classespublic void add(java.lang.Class c)
c
- the classpublic boolean isSubclassOfClasses(java.lang.Class c)
c
- the class
public java.util.Set getClasses()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |