|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.domains.fsm.modal.ModalController.ClassComparator
private static class ModalController.ClassComparator
A comparator to compare classes, which is used to sort the map returned by
ModalController._getRefinementClasses().
| Red (tfeng) |
| Red (tfeng) |
| Constructor Summary | |
|---|---|
private |
ModalController.ClassComparator()
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Class<? extends Entity> class1,
java.lang.Class<? extends Entity> class2)
Compare class1 and class2, and return -1 if class1 is a subclass of class2, 1 if class2 is a subclass of class1, and otherwise, the result of comparing the names of class1 and class2. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
private ModalController.ClassComparator()
| Method Detail |
|---|
public int compare(java.lang.Class<? extends Entity> class1,
java.lang.Class<? extends Entity> class2)
compare in interface java.util.Comparator<java.lang.Class<? extends Entity>>class1 - The first class.class2 - The second class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||