net.sourceforge.nite.gui.util
Class NOMElementStartTimeComparator

java.lang.Object
  extended by net.sourceforge.nite.gui.util.NOMElementStartTimeComparator
All Implemented Interfaces:
java.util.Comparator

public class NOMElementStartTimeComparator
extends java.lang.Object
implements java.util.Comparator

Compares two NOMElements on their starttime. Exception if invoked on object without timing.
If time is the same, but o1!= o2, o1 is smaller than o2.
Degenerate cases: null < not timed < timed
Equal: iff o1==o2 WARNING: THIS CLASS MAY MOVE TO A MORE APPROPRIATE PACKAGE

Author:
Dennis Reidsma, UTwente

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

Constructor Detail

NOMElementStartTimeComparator

public NOMElementStartTimeComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator