public class DataSort<M> extends Object implements Comparator<M>
Constructor and Description |
---|
DataSort(Comparator<? super M> itemComparator,
SortDir direction) |
Modifier and Type | Method and Description |
---|---|
int |
compare(M o1,
M o2) |
SortDir |
getDirection()
Returns the current sort direction for this sort info.
|
void |
setDirection(SortDir direction)
Sets a new sort direction.
|
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
public DataSort(Comparator<? super M> itemComparator, SortDir direction)
public SortDir getDirection()
public void setDirection(SortDir direction)
Copyright © 2018. All rights reserved.