echopointng.util.reflect
Class ReflectionKit.ClassMethodComparator

java.lang.Object
  extended by echopointng.util.reflect.ReflectionKit.MethodComparator
      extended by echopointng.util.reflect.ReflectionKit.ClassMethodComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ReflectionKit

public static class ReflectionKit.ClassMethodComparator
extends ReflectionKit.MethodComparator

A Comparator that can be used when comparing and sorting Method objects by most specific declaring class order, then followed by method name.

In short it sorts in "Class / Method" order.


Constructor Summary
ReflectionKit.ClassMethodComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class echopointng.util.reflect.ReflectionKit.MethodComparator
compareNonNullMethods
 
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.ClassMethodComparator

public ReflectionKit.ClassMethodComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator
Overrides:
compare in class ReflectionKit.MethodComparator
See Also:
ReflectionKit.MethodComparator.compare(java.lang.Object, java.lang.Object)