public class LevelComparator
extends java.lang.Object
implements java.util.Comparator
| Constructor and Description |
|---|
LevelComparator(SymbolTable table) |
public LevelComparator(SymbolTable table)
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 - ignoredfalse