live.dto
Class Thread.ComparatorByTimeStarted

java.lang.Object
  extended bylive.dto.Thread.ThreadComparator
      extended bylive.dto.Thread.ComparatorByTimeStarted
All Implemented Interfaces:
Comparator
Enclosing class:
Thread

public static class Thread.ComparatorByTimeStarted
extends Thread.ThreadComparator

This comparator orders threads by the starting value


Field Summary
 
Fields inherited from class live.dto.Thread.ThreadComparator
 
Constructor Summary
Thread.ComparatorByTimeStarted()
           
 
Method Summary
 int compare(Thread t1, Thread t2)
          Compares two threads by subtracting the time started for each
 
Methods inherited from class live.dto.Thread.ThreadComparator
compare, setReverse
 
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

Thread.ComparatorByTimeStarted

public Thread.ComparatorByTimeStarted()
Method Detail

compare

public int compare(Thread t1,
                   Thread t2)
Compares two threads by subtracting the time started for each

Specified by:
compare in class Thread.ThreadComparator
Parameters:
t1 - First thread
t2 - Second thread
Returns:
int Difference in starting times between the two threads
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2005