com.isti.util
Interface ExtendedComparable

All Superinterfaces:
java.lang.Comparable

public interface ExtendedComparable
extends java.lang.Comparable

This interface extends the Comparable interface to allow multiple ways sorting.


Field Summary
static int NO_SORT_TYPE
          The value for the no sort type.
 
Method Summary
 int compareTo(java.lang.Object o, int sortType)
          Compares this object with the specified object and index for order.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

NO_SORT_TYPE

public static final int NO_SORT_TYPE
The value for the no sort type.

See Also:
Constant Field Values
Method Detail

compareTo

public int compareTo(java.lang.Object o,
                     int sortType)
Compares this object with the specified object and index for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Parameters:
o - the Object to be compared.
sortType - the sort type.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this Object.