public class StatsTableComparator extends java.lang.Object implements java.util.Comparator<StatsTable>
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
supportedSortKeys
Names of supported sort keys as they should be specified on the command line.
|
Constructor and Description |
---|
StatsTableComparator(java.lang.String sortKey,
boolean humanReadable) |
StatsTableComparator(java.lang.String sortKey,
boolean humanReadable,
boolean ascending) |
Modifier and Type | Method and Description |
---|---|
int |
compare(StatsTable stx,
StatsTable sty)
Compare StatsTable instances based on this instance's sortKey.
|
public static final java.lang.String[] supportedSortKeys
public StatsTableComparator(java.lang.String sortKey, boolean humanReadable)
public StatsTableComparator(java.lang.String sortKey, boolean humanReadable, boolean ascending)
public int compare(StatsTable stx, StatsTable sty)
compare
in interface java.util.Comparator<StatsTable>
Copyright © 2009- The Apache Software Foundation