org.axiondb

Class RowComparator

public class RowComparator extends Object implements Comparator

A Comparatorfor 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.

Author: Morgan Delagrange Rodney Waldhoff Ahimanikya Satapathy

Constructor Summary
RowComparator(Selectable sel, RowDecorator dec)
Method Summary
intcompare(Object o1, Object o2)

Constructor Detail

RowComparator

public RowComparator(Selectable sel, RowDecorator dec)

Method Detail

compare

public int compare(Object o1, Object o2)