gate.util.reporting
Class ValueComparator

java.lang.Object
  extended by gate.util.reporting.ValueComparator
All Implemented Interfaces:
Comparator

 class ValueComparator
extends Object
implements Comparator

A Comparator class to compare the values of the LinkedHashMaps containing processing elements and time taken by them.


Constructor Summary
ValueComparator()
           
 
Method Summary
 int compare(Object obj1, Object obj2)
          Provides the comparison logic between the processing time taken by processing elements
 
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
 

Constructor Detail

ValueComparator

ValueComparator()
Method Detail

compare

public int compare(Object obj1,
                   Object obj2)
Provides the comparison logic between the processing time taken by processing elements

Specified by:
compare in interface Comparator
Parameters:
obj1 - An integer value in form of string to be compared
obj2 - An integer value in form of string to be compared
Returns:
An integer representing difference (0 if both are equal, positive if obj1 is greater then obj2, negative if obj2 is greater then obj1)