EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.util
Class ReflectionKit.ClassDerivationComparator

java.lang.Object
  extended by 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.


Constructor Summary
ReflectionKit.ClassDerivationComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
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

ReflectionKit.ClassDerivationComparator

public ReflectionKit.ClassDerivationComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator

EchoPoint API - 3.0.0b5
App Webcontainer