com.bigzip.plugin.support.table
Class DateSorter

java.lang.Object
  |
  +--com.bigzip.plugin.support.table.DateSorter
All Implemented Interfaces:
DataSorter

public class DateSorter
extends java.lang.Object
implements DataSorter


Constructor Summary
DateSorter()
           
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Sorts two dates in temporal order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateSorter

public DateSorter()
Method Detail

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
            throws java.lang.IllegalArgumentException
Sorts two dates in temporal order.
Specified by:
compare in interface DataSorter
Parameters:
a - The first date object.
b - The second date object.
Returns:
-1 if a is before b, 1 if a is after b, 0 otherwise.
Throws:
java.lang.IllegalArgumentException - one or both parameters are not Date objects.