- java.lang.Object
-
- xyz.cofe.collection.ClassSet.ClassHeirarchyComparer
-
- All Implemented Interfaces:
Comparator<Class>
- Enclosing class:
- ClassSet
public static class ClassSet.ClassHeirarchyComparer extends Object implements Comparator<Class>
Стравивает два класса на предмет иерархии.
-
-
Field Summary
Fields Modifier and Type Field Description booleaninversetrue - в порядке от дочернего к родит; false - от родител. к дочернему
-
Constructor Summary
Constructors Constructor Description ClassHeirarchyComparer()Конструктор, стравнивает классы в порядке отClassHeirarchyComparer(boolean inverse)Конструктор
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Class o1, Class 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Class o1, Class o2)
- Specified by:
comparein interfaceComparator<Class>
-
-