pivot.wtk
Class TableView.RowComparator
java.lang.Object
pivot.wtk.TableView.RowComparator
- All Implemented Interfaces:
- Comparator<Object>
- Enclosing class:
- TableView
public static final class TableView.RowComparator
- extends Object
- implements Comparator<Object>
Compares two rows. The dictionary values must implement
Comparable
.
TODO Allow a caller to sort on multiple columns.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableView.RowComparator
public TableView.RowComparator(String columnName,
SortDirection sortDirection)
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator<Object>