net.sf.farrago.ddl
Class DdlValidator.RefObjectPositionComparator

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


Constructor Summary
private DdlValidator.RefObjectPositionComparator()
           
 
Method Summary
 int compare(RefObject o1, RefObject o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DdlValidator.RefObjectPositionComparator

private DdlValidator.RefObjectPositionComparator()
Method Detail

compare

public int compare(RefObject o1,
                   RefObject o2)
Specified by:
compare in interface Comparator<RefObject>