cz.cmc.tcgui
Class TCGraphSelectionModel.TCHierarchyComparator
java.lang.Object
cz.cmc.tcgui.TCGraphSelectionModel.TCHierarchyComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- TCGraphSelectionModel
- public static class TCGraphSelectionModel.TCHierarchyComparator
- extends Object
- implements Comparator
Comparator comparing order of one (always the same) of in-depth
searches of selected objects' class hierarchy
TCGraphSelectionModel.TCHierarchyComparator
public TCGraphSelectionModel.TCHierarchyComparator()
compare
public int compare(Object o0,
Object o1)
- Compare two objects
- Specified by:
compare
in interface Comparator
- Parameters:
o0
- 1st object to compare (must be a java.lang.Class instance)o1
- 2nd object to compare (must be a java.lang.Class instance)
- Returns:
- -1, 0 or 1 if o1 is less, equal or greater than o2
equals
public boolean equals(Object obj)
- Comparing comparator with an another one
- Specified by:
equals
in interface Comparator