org.knowceans.util
Class TableList.FieldComparator

java.lang.Object
  extended by org.knowceans.util.TableList.FieldComparator
All Implemented Interfaces:
java.util.Comparator<TableList.Fields>
Enclosing class:
TableList

public class TableList.FieldComparator
extends java.lang.Object
implements java.util.Comparator<TableList.Fields>

FieldSorter sorts fields according to a numeric field.

Author:
gregor

Constructor Summary
TableList.FieldComparator(int field, boolean reverse)
          Initialise the sorter using the field to sort by and the direction.
 
Method Summary
 int compare(TableList.Fields o1, TableList.Fields o2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

TableList.FieldComparator

public TableList.FieldComparator(int field,
                                 boolean reverse)
Initialise the sorter using the field to sort by and the direction.

Parameters:
field -
reverse -
Method Detail

compare

public int compare(TableList.Fields o1,
                   TableList.Fields o2)
Specified by:
compare in interface java.util.Comparator<TableList.Fields>