|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexComparator
A comparator that is used within BlockIntegerList that compares two int values which are indices to data that is being compared. For example, we may have an BlockIntegerList that contains indices to cells in the column of a table. To make a sorted list, we use this comparator to lookup the index values in the list for sorting and searching.
Method Summary | |
---|---|
int |
compare(int index1,
int index2)
Returns >0 if the value pointed to by index1 is greater than the value pointed to by index2, or &tl; 0 if the value pointed to by index 1 is less than the value pointed to by index 2. |
int |
compare(int index1,
java.lang.Object val)
Returns > 0 if the value pointed to by index1 is greater than 'val', or < 0 if the value pointed to by index 1 is less than 'val'. |
Method Detail |
---|
int compare(int index1, java.lang.Object val)
int compare(int index1, int index2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |