T - @DefaultNonNull public static final class SimpleSearchModel.ByComparatorSortHelper<T> extends Object implements ISortHelper<T>
| Constructor and Description |
|---|
ByComparatorSortHelper(String columnKey,
Comparator<T> comparator)
Specify column key and comparator.
|
| Modifier and Type | Method and Description |
|---|---|
<M extends ITableModel<T>> |
adjustSort(M model,
boolean descending)
Configure the model passed in such a way that it sorts in some specific way.
|
public ByComparatorSortHelper(String columnKey, Comparator<T> comparator)
columnKey - comparator - public <M extends ITableModel<T>> void adjustSort(M model, boolean descending) throws Exception
ISortHelperadjustSort in interface ISortHelper<T>ExceptionCopyright © 2017 etc.to. All rights reserved.