Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## echopointng.util.reflect
Class ReflectionKit.ClassDerivationComparator

    java.lang.Object
      echopointng.util.reflect.ReflectionKit.ClassDerivationComparator

All Implemented Interfaces:
  java.util.Comparator

Enclosing class:
  ReflectionKit

    public static class ReflectionKit.ClassDerivationComparator

extends java.lang.Object
implements java.util.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" order.

Constructor Summary
`ReflectionKit.ClassDerivationComparator()`

Method Summary
`int` | `compare(java.lang.Object o1, java.lang.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(java.lang.Object o1,
                       java.lang.Object o2)

  Specified by:
    `compare` in interface `java.util.Comparator`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD