Class SlowQueryReport.QueryStatsComparator
- java.lang.Object
- 
- org.apache.tomcat.jdbc.pool.interceptor.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> Compare QueryStats by their lastInvocation value. QueryStats that have never been updated, have a lastInvocation value of0which should be handled as the newest possible invocation.
- 
- 
Constructor SummaryConstructors Constructor Description QueryStatsComparator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(SlowQueryReport.QueryStats stats1, SlowQueryReport.QueryStats stats2)
 
- 
- 
- 
Method Detail- 
comparepublic int compare(SlowQueryReport.QueryStats stats1, SlowQueryReport.QueryStats stats2) - Specified by:
- comparein interface- java.util.Comparator<SlowQueryReport.QueryStats>
 
 
- 
 
-