wt.projmgmt.msproject
Class Utils.SortByID

java.lang.Object
  extended bywt.projmgmt.msproject.Utils.SortByID
All Implemented Interfaces:
Comparator
Enclosing class:
Utils

public static class Utils.SortByID
extends Object
implements Comparator

A Comparator that orders ProjectNodes according to their IDs. This Comparator assumes that both its arguments are instances of ProjectNode.


Constructor Summary
Utils.SortByID()
           
 
Method Summary
 int compare(Object o1, Object 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

Utils.SortByID

public Utils.SortByID()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator
Throws:
ClassCastException - if either of the arguments are not ProjectNodes