net.sf.farrago.ddl
Class DdlValidator.RefObjectPositionComparator
java.lang.Object
net.sf.farrago.ddl.DdlValidator.RefObjectPositionComparator
- All Implemented Interfaces:
- Comparator<RefObject>
- Enclosing class:
- DdlValidator
private class DdlValidator.RefObjectPositionComparator
- extends Object
- implements Comparator<RefObject>
RefObjectPositionComparator compares RefObjects based on their position
within the owning DdlValidator's DdlValidator.parserContextMap
. Handles the case where
position information is not available (all comparisons return equality)
and even the unlikely case where only partial position information is
available (RefObjects with positions compare before those without).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DdlValidator.RefObjectPositionComparator
private DdlValidator.RefObjectPositionComparator()
compare
public int compare(RefObject o1,
RefObject o2)
- Specified by:
compare
in interface Comparator<RefObject>