gate.util.reporting
Class ValueComparator
java.lang.Object
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.
|
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 |
ValueComparator
ValueComparator()
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 comparedobj2 - 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)