dk.netarkivet.harvester.harvesting.frontier
Class FrontierReportLineNaturalOrder

java.lang.Object
  extended by dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineNaturalOrder
All Implemented Interfaces:
java.util.Comparator<FrontierReportLineOrderKey>

public class FrontierReportLineNaturalOrder
extends java.lang.Object
implements java.util.Comparator<FrontierReportLineOrderKey>

This class implements a natural order on FrontierReportLine. Comparisons are made : - first by decreasing values of totalEnqueues - secondly by domain name (string natural order)


Constructor Summary
FrontierReportLineNaturalOrder()
           
 
Method Summary
 int compare(FrontierReportLineOrderKey k1, FrontierReportLineOrderKey k2)
           
static FrontierReportLineNaturalOrder getInstance()
          Returns the singleton instance of this class.
 
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

FrontierReportLineNaturalOrder

public FrontierReportLineNaturalOrder()
Method Detail

compare

public int compare(FrontierReportLineOrderKey k1,
                   FrontierReportLineOrderKey k2)
Specified by:
compare in interface java.util.Comparator<FrontierReportLineOrderKey>

getInstance

public static FrontierReportLineNaturalOrder getInstance()
Returns the singleton instance of this class.

Returns:
the singleton instance of this class.