org.onemind.commons.java.datastructure
public class ClassSet extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.HashSet |
_classes
the classes *
|
Constructor and Description |
---|
ClassSet() |
ClassSet(java.util.Collection c) |
Modifier and Type | Method and Description |
---|---|
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
|
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 classpublic java.util.Set getClasses()