Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

org.openmobileis.common.util.collection.Sort Class Reference

List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: sort algorythms.

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

Definition at line 40 of file Sort.java.

Static Public Member Functions

static synchronized void shellsort (Vector vec, Orderable op)
 Sort a Vector of Object references according to the ordering specified by the Orderable object instance method compareTo().
static synchronized void shellsort (Array array, Orderable op)
 Sort a CyberArray of Object references according to the ordering specified by the Orderable object instance method compareTo().
static void shellsort (Object[] data, Orderable op)


Member Function Documentation

static synchronized void org.openmobileis.common.util.collection.Sort.shellsort Array  array,
Orderable  op
[static]
 

Sort a CyberArray of Object references according to the ordering specified by the Orderable object instance method compareTo().

use shellSort

Parameters:
vec the vector of Objects
op a reference to an Orderable object instance
Exceptions:
IllegalArgumentException for null arguments
See also:
Orderable

Definition at line 91 of file Sort.java.

References org.openmobileis.common.util.collection.Array.getArrayElements(), org.openmobileis.common.util.collection.Array.setArrayElements(), org.openmobileis.common.util.collection.Sort.shellsort(), and org.openmobileis.common.util.collection.Array.size.

static synchronized void org.openmobileis.common.util.collection.Sort.shellsort Vector  vec,
Orderable  op
[static]
 

Sort a Vector of Object references according to the ordering specified by the Orderable object instance method compareTo().

Parameters:
vec the vector of Objects
op a reference to an Orderable object instance
Exceptions:
IllegalArgumentException for null arguments
See also:
Orderable

Definition at line 56 of file Sort.java.

Referenced by org.openmobileis.common.util.collection.Sort.shellsort().


The documentation for this class was generated from the following file:
Generated on Wed Dec 14 21:05:37 2005 for OpenMobileIS by  doxygen 1.4.4