com.bigzip.plugin
Interface DataSorter

All Known Implementing Classes:
DoublePrecisionSorter, DateSorter, NumberSorter

public interface DataSorter

Archive plugin's provide an implementation of this plugin when a column is sortable. This interface provides the means for the program to sort the information in a column.


Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Compares to objects together.
 

Method Detail

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
            throws java.lang.IllegalArgumentException
Compares to objects together. If object a is to appear before object b, then the method returns a number less than zero. If object a is equal to object b, then the method returns zero. If object a is to appear after object b, then the method returns a number greater than zero. If the method can't compare the objects becomes they are of incompatible types, the method throws an IllegalArgumentException.
Parameters:
a - Object a
b - Object b
Returns:
The result of comparing object a with object b.