sunlabs.brazil.util
public interface Sort.Compare
Sort
class to compare
elements when an array is being sorted.
Version: 2.2, 04/11/30
Method Summary | |
---|---|
int | compare(Object array, int index1, int index2)
Compare two elements in the given array. |
Parameters: array Array being sorted. index1 The index in the given array of the first element to compare. index2 The index in the given array of the second element to compare.
Returns: The implementation must return a number less than,
equal to, or greater than zero to indicate whether
the array element at index1
should be
considered less than, equal to, or greater than the
array element at index2
.