Class FrontierReportLineNaturalOrder
- java.lang.Object
-
- dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineNaturalOrder
-
- All Implemented Interfaces:
java.util.Comparator<dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey>
public class FrontierReportLineNaturalOrder extends java.lang.Object implements java.util.Comparator<dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey>
This class implements a natural order onFrontierReportLine
. Comparisons are made : - first by decreasing values of totalEnqueues - secondly by domain name (string natural order)
-
-
Constructor Summary
Constructors Constructor Description FrontierReportLineNaturalOrder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey k1, dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey k2)
static FrontierReportLineNaturalOrder
getInstance()
Returns the singleton instance of this class.
-
-
-
Constructor Detail
-
FrontierReportLineNaturalOrder
public FrontierReportLineNaturalOrder()
-
-
Method Detail
-
compare
public int compare(dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey k1, dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey k2)
- Specified by:
compare
in interfacejava.util.Comparator<dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey>
-
getInstance
public static FrontierReportLineNaturalOrder getInstance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
-