com.lazerycode.jmeter.analyzer.statistics.ValueCountComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmeter-analysis-maven-plugin Show documentation
Show all versions of jmeter-analysis-maven-plugin Show documentation
Parses JMeter result files and computes performance indicators such as average request duration
package com.lazerycode.jmeter.analyzer.statistics;
import java.io.Serializable;
import java.util.Comparator;
/**
* Compares {@link ValueCount} by value
*
* @author Peter Kaul
*/
class ValueCountComparator implements Comparator, Serializable {
private static final long serialVersionUID = -3567044398536300166L;
@Override
public int compare(ValueCount vc1, ValueCount vc2) {
long v1 = vc1.getValue();
long v2 = vc2.getValue();
return v1 < v2 ? -1 : (v1 == v2 ? 0 : 1);
}
}