public class HostReportComparator extends Object implements Comparator<IHostReport>, Serializable
IHostReports.| Constructor and Description |
|---|
HostReportComparator(String metricName,
boolean asc) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(IHostReport o1,
IHostReport o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic HostReportComparator(String metricName, boolean asc)
metricName - The name of the metric which is used to impose an order on
the IHostReports.asc - true for an ascending sort and
false for a descending sort.public int compare(IHostReport o1, IHostReport o2)
compare in interface Comparator<IHostReport>Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.