| Sun Microsystems Laboratories Experimental Stuff | Sort.Compare (Brazil Project) |
|
|
||||||||
| PREV CLASS NEXT CLASS | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is used by the Sort class to compare
elements when an array is being sorted.
| Method Summary | |
int |
compare(Object array,
int index1,
int index2)
Compare two elements in the given array. |
| Method Detail |
public int compare(Object array,
int index1,
int index2)
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.
index1 should be
considered less than, equal to, or greater than the
array element at index2.
|
Version 2.1, Generated 12/30/04 Copyright (c) 2001-2004, Sun Microsystems. |
||||||||
| PREV CLASS NEXT CLASS | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
This page is: http://www.experimentalstuff.com/About_this_site/apidoc/sunlabs/brazil/util/Sort.Compare.html Last Modified: Fri, 31 Dec 2004 00:13:53 GMT copyright (c) 2000-2007, Sun Microsystems |