Class Sort
All Packages Class Hierarchy This Package Previous Next Index
Class Sort
public class netscape.util.Sort
extends java.lang.Object
{
/* Methods
*/
public static void sort(Object[], Object[], int, int, boolean);
public static void sortStrings(Object[], int, int, boolean, boolean);
}
Object subclass containing static sorting methods.
Methods
public static void sort(Object array[],
Object other[],
int begin,
int count,
boolean ascending)
- Sorts a homogenous collection of objects. The objects must all
implement the Comparable interface or be Strings. It also operates
on a parallel array of Objects--as elements of the Comparable
array are swapped, corresponding elements in the Object array are
swapped as well.
- See Also:
- Comparable
public static void sortStrings(Object strings[],
int begin,
int count,
boolean ascending,
boolean ignoreCase)
- Sorts an array of strings. If ignoreCase is true, the
sort ignores case (i.e. converts the strings to upper case and then
compares them). If ascending is true, this method sorts
the strings in ascending order, descending otherwise.
All Packages Class Hierarchy This Package Previous Next Index
Copyright © 1997 Netscape Communications Corporation. All rights reserved
Please send any comments or corrections to ifcfeedback@netscape.com
HTML generated on 21 Oct 1997