public class HostReportComparator extends Object implements Comparator<IHostReport>, Serializable
IHostReport
s.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, wait
equals
public HostReportComparator(String metricName, boolean asc)
metricName
- The name of the metric which is used to impose an order on
the IHostReport
s.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.