001    package railo.runtime.debug;
002    
003    import java.util.Comparator;
004    
005    
006    
007    /**
008     * 
009     */
010    public final class QueryEntryComparator implements Comparator<QueryEntry> {
011    
012        @Override
013        public int compare(QueryEntry o1, QueryEntry o2) {
014            return compare((QueryEntryPro)o1,(QueryEntryPro)o2);
015        }
016        
017        public int compare(QueryEntryPro qe1,QueryEntryPro qe2) {
018            return (int)((qe2.getExecutionTime())-(qe1.getExecutionTime()));
019        }
020    }