class ClassComparator extends java.lang.Object implements java.util.Comparator<java.lang.Class<? extends Entity>>
Constructor and Description |
---|
ClassComparator() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.