org.openmobileis.common.util.collection
Class Sort
java.lang.Object
|
+--org.openmobileis.common.util.collection.Sort
- public class Sort
- extends java.lang.Object
Title: OpenMobileIS project source
Description: sort algorythms
- Since:
- JDK 1.1
- Version:
- 1.0.
- Author:
- Philippe Delrieu
Method Summary |
static void |
shellsort(Array array,
Orderable op)
Sort a CyberArray of Object references according to the ordering
specified by the Orderable object instance method compareTo().
use shellSort |
static void |
shellsort(java.lang.Object[] data,
Orderable op)
|
static void |
shellsort(java.util.Vector vec,
Orderable op)
Sort a Vector of Object references according to the ordering
specified by the Orderable object instance method compareTo(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shellsort
public static void shellsort(java.util.Vector vec,
Orderable op)
- Sort a Vector of Object references according to the ordering
specified by the Orderable object instance method compareTo().
- Parameters:
vec
- the vector of Objectsop
- a reference to an Orderable object instance- Throws:
java.lang.IllegalArgumentException
- for null arguments- See Also:
Orderable
shellsort
public static void shellsort(Array array,
Orderable op)
- 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 Objectsop
- a reference to an Orderable object instance- Throws:
java.lang.IllegalArgumentException
- for null arguments- See Also:
Orderable
shellsort
public static void shellsort(java.lang.Object[] data,
Orderable op)
Copyright 2005 e-Care. All Rights Reserved.