cz.cmc.tcgui
Class TCGraphSelectionModel.TCHierarchyComparator

java.lang.Object
  extended bycz.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


Constructor Summary
TCGraphSelectionModel.TCHierarchyComparator()
           
 
Method Summary
 int compare(Object o0, Object o1)
          Compare two objects
 boolean equals(Object obj)
          Comparing comparator with an another one
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCGraphSelectionModel.TCHierarchyComparator

public TCGraphSelectionModel.TCHierarchyComparator()
Method Detail

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