| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.llnl.babel.backend.LevelComparator
public class LevelComparator
| Constructor Summary | |
|---|---|
| LevelComparator(SymbolTable table) | |
| Method Summary | |
|---|---|
|  int | compare(java.lang.Object o1,
        java.lang.Object o2)Compare two SymbolIDs to see which type is more refined. | 
|  boolean | equals(java.lang.Object obj)The following equals method does not make sense for a sort comparator. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LevelComparator(SymbolTable table)
| Method Detail | 
|---|
public final int compare(java.lang.Object o1,
                         java.lang.Object o2)
SymbolIDs to see which type is more refined.
 An object is considered lesser if there are more types in the type
 hierarchy between it and the base exception type than the
 object it is being compared with.
compare in interface java.util.Comparatoro1 - this should be a SymbolID object.o2 - this should be a SymbolID object.
o1 has more types in the type hierarchy
         between it and the base exception type than o2.
         1  if o1 has fewer types in the type hierarchy
         between it and the base exception type than o2.
         Otherwise, 0 is returned.public final boolean equals(java.lang.Object obj)
false.
equals in interface java.util.Comparatorequals in class java.lang.Objectobj - ignored
false| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||