wt.projmgmt.msproject
Class Utils.SortByOID

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

public static class Utils.SortByOID
extends Object
implements Comparator

A Comparator that orders Persistables according to their object identifiers. This Comparator assumes that both its arguments are instances of Persistable.


Constructor Summary
Utils.SortByOID()
           
 
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.SortByOID

public Utils.SortByOID()
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 Persistables