uws.job.manager
Class DefaultDestructionManager.TimeComparator

java.lang.Object
  extended by uws.job.manager.DefaultDestructionManager.TimeComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<AbstractJob>
Enclosing class:
DefaultDestructionManager

protected static class DefaultDestructionManager.TimeComparator
extends java.lang.Object
implements java.io.Serializable, java.util.Comparator<AbstractJob>

Lets a TreeSet or a TreeMap sorting AbstractJob instances in an ascending order and according to their destruction time.

Version:
02/2011
Author:
Grégory Mantelet (CDS)
See Also:
Serialized Form

Constructor Summary
protected DefaultDestructionManager.TimeComparator()
           
 
Method Summary
 int compare(AbstractJob job1, AbstractJob job2)
           
 
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

DefaultDestructionManager.TimeComparator

protected DefaultDestructionManager.TimeComparator()
Method Detail

compare

public int compare(AbstractJob job1,
                   AbstractJob job2)
Specified by:
compare in interface java.util.Comparator<AbstractJob>