public class SortUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static IntComparatorChain |
getChain(Table table,
Sort key)
Returns a comparator chain for sorting according to the given key
|
static it.unimi.dsi.fastutil.ints.IntComparator |
getComparator(Table table,
Sort key)
Returns a comparator that can be used to sort the records in this table according to the given
sort key
|
static it.unimi.dsi.fastutil.ints.IntComparator |
rowComparator(Column<?> column,
Sort.Order order)
Returns a comparator for the column matching the specified name
|
public static IntComparatorChain getChain(Table table, Sort key)
public static it.unimi.dsi.fastutil.ints.IntComparator rowComparator(Column<?> column, Sort.Order order)
column - The column to sortorder - Specifies whether the sort should be in ascending or descending orderCopyright © 2020. All rights reserved.