jimmc.roots
Interface SortComparator

All Known Implementing Classes:
SortAdaptor

public interface SortComparator

Comparison used for sorting.


Method Summary
 int compare(java.lang.Object first, java.lang.Object second)
          Compare two sortable items to see if they are out of order.
 

Method Detail

compare

public int compare(java.lang.Object first,
                   java.lang.Object second)
Compare two sortable items to see if they are out of order.
Parameters:
first - first item
second - second item
Returns:
<0, 0, or >0 as the first item is less than, equal to, or greater than the second item.