Class SlowQueryReport.QueryStatsComparator

  • All Implemented Interfaces:
    java.util.Comparator<SlowQueryReport.QueryStats>
    Enclosing class:
    SlowQueryReport

    public static class SlowQueryReport.QueryStatsComparator
    extends java.lang.Object
    implements java.util.Comparator<SlowQueryReport.QueryStats>
    Compares QueryStats by their lastInvocation value. QueryStats that have never been updated have a lastInvocation value of 0 which is treated as the newest possible invocation.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryStatsComparator()
      Creates a new QueryStatsComparator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(SlowQueryReport.QueryStats stats1, SlowQueryReport.QueryStats stats2)  
      • 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