ROW
- is the generic type of a row in the list.public class ColumnComparator<ROW> extends Object implements Comparator<ROW>
AbstractUiWidgetTableColumn.sort(SortOrder)
Modifier and Type | Field and Description |
---|---|
private AbstractUiWidgetTableColumn<?,ROW,?> |
column
The current column to sort by.
|
private SortOrder |
sortOrder
The
SortOrder to sort by. |
Constructor and Description |
---|
ColumnComparator()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(ROW row1,
ROW row2) |
void |
sort(List<ROW> rows,
AbstractUiWidgetTableColumn<?,ROW,?> sortColumn,
SortOrder order)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
private AbstractUiWidgetTableColumn<?,ROW,?> column
public void sort(List<ROW> rows, AbstractUiWidgetTableColumn<?,ROW,?> sortColumn, SortOrder order)
public int compare(ROW row1, ROW row2)
compare
in interface Comparator<ROW>
Copyright © 2001–2016 mmm-Team. All rights reserved.