echopoint.util
Class ReflectionKit.ClassDerivationComparator
java.lang.Object
echopoint.util.ReflectionKit.ClassDerivationComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- ReflectionKit
public static class ReflectionKit.ClassDerivationComparator
- extends Object
- implements Comparator
A Comparator that can be used when comparing and sorting Class objects by
most specific class order. If c2 is derived from c1 then it is sorted
before c1. If the classes are unrelated, then its done by class
alphabetic name.
In short it sorts in "Class Derivation / Class Name" order.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionKit.ClassDerivationComparator
public ReflectionKit.ClassDerivationComparator()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare in interface Comparator