|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.onemind.commons.java.datastructure.ClassSet
public class 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
| Field Summary | |
|---|---|
private java.util.HashSet |
_classes
the classes * |
| Constructor Summary | |
|---|---|
ClassSet()
|
|
ClassSet(java.util.Collection c)
|
|
| 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 |
| Field Detail |
|---|
private java.util.HashSet _classes
| 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 | |||||||||