org.axiondb
Class RowComparator
java.lang.Object
org.axiondb.RowComparator
- All Implemented Interfaces:
- Comparator
public class RowComparator
- extends Object
- implements Comparator
A Comparator
for Rows
, which will sort a collection according to
the value of a single selectable. By using a ComparatorChain, one can perform in-memory
sorts over multiple columns.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowComparator
public RowComparator(Selectable sel,
RowDecorator dec)
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator