|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QuicksortComparator
An interface intended to be implemented for use with the SortableVector Quicksort implementation. A class that implements this interface will perform the coparisons that are made during the sorting process.
This approach to the Quicksort algorithm is derived from Bruce Eckel's implementation, which can be found at: http://www.codeguru.com/java/tij/tij0091.shtml
Method Summary | |
---|---|
int |
compare(java.lang.Object first,
java.lang.Object second)
Tests two objects to see whether the are "equal" and, if not, which is "greater" than the other (in whatever sense is relevant). |
Method Detail |
---|
int compare(java.lang.Object first, java.lang.Object second)
first
- The object to compare to second.second
- The object to compare to first.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |