Class 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 on FrontierReportLine. Comparisons are made : - first by decreasing values of totalEnqueues - secondly by domain name (string natural order)
    • 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.
      • 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Method Detail

      • compare

        public int compare​(dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey k1,
                           dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey k2)
        Specified by:
        compare in interface java.util.Comparator<dk.netarkivet.harvester.harvesting.frontier.FrontierReportLineOrderKey>