public class ColumnComparator extends Object implements Comparator<FileData>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ascending |
protected int |
index |
| Constructor and Description |
|---|
ColumnComparator(int index,
boolean ascending)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(FileData one,
FileData two) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic ColumnComparator(int index,
boolean ascending)
index - The column index of the table data to be comparedascending - Specifies the sort order.public int compare(FileData one, FileData two)
compare in interface Comparator<FileData>one - two - Comparator.compare(java.lang.Object, java.lang.Object)Copyright © 2015. All rights reserved.