class CSVSort.SortableCSVRow extends java.lang.Object implements java.lang.Comparable<CSVSort.SortableCSVRow>
Constructor and Description |
---|
CSVSort.SortableCSVRow(java.lang.String[] fields,
java.lang.String[] leadComments,
java.lang.String tailComment)
constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CSVSort.SortableCSVRow other)
Sort on arbitrary list of columns.
|
(package private) void |
emit(CSVWriter w)
output this row to a CSVWriter, including comments
|
CSVSort.SortableCSVRow(java.lang.String[] fields, java.lang.String[] leadComments, java.lang.String tailComment)
fields
- List of fields to sort onleadComments
- comment lines prior to the this row, without lead #tailComment
- line on tail ent of line. null if so such comment, without lead #public final int compareTo(CSVSort.SortableCSVRow other)
compareTo
in interface java.lang.Comparable<CSVSort.SortableCSVRow>
other
- other SortableCSVRow to compare with this onevoid emit(CSVWriter w)
w
- handle to CSVWriter