EchoPoint
2.1.0rc4

echopointng.util.reflect
Class ReflectionKit.ClassMemberComparator

java.lang.Object
  extended byechopointng.util.reflect.ReflectionKit.BaseReflectionKitComparator
      extended byechopointng.util.reflect.ReflectionKit.MemberClassComparator
          extended byechopointng.util.reflect.ReflectionKit.ClassMemberComparator
All Implemented Interfaces:
java.util.Comparator
Direct Known Subclasses:
ReflectionKit.ClassConstructorComparator, ReflectionKit.ClassFieldComparator, ReflectionKit.ClassMethodComparator
Enclosing class:
ReflectionKit

public static class ReflectionKit.ClassMemberComparator
extends ReflectionKit.MemberClassComparator

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

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

See Also:
ReflectionKit.MemberClassComparator

Constructor Summary
ReflectionKit.ClassMemberComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class echopointng.util.reflect.ReflectionKit.MemberClassComparator
compareByClassDerivation, compareByConstructor, compareByField, compareByMethod, compareByModifiers, normaliseRC
 
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.ClassMemberComparator

public ReflectionKit.ClassMemberComparator()
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.MemberClassComparator
See Also:
ReflectionKit.MemberClassComparator.compare(java.lang.Object, java.lang.Object)

EchoPoint
2.1.0rc4