org.wegra.util.collection.array
Class InsertionSort

java.lang.Object
  extended byorg.wegra.util.collection.array.InsertionSort

public class InsertionSort
extends java.lang.Object

Version:
1.0.0 (2003-06-08)
Author:
wegra (Bok-Youn Lee)

Constructor Summary
InsertionSort()
           
 
Method Summary
static void sort(byte[] set)
          Sorts the specified array, using insertion sort algorithm.
static void sort(byte[] data, int offset, int length)
          Sorts the specified array, using insertion sort algorithm.
static void sort(char[] set)
          Sorts the specified array, using insertion sort algorithm.
static void sort(char[] data, int offset, int length)
          Sorts the specified array, using insertion sort algorithm.
static void sort(double[] set)
          Sorts the specified array, using insertion sort algorithm.
static void sort(double[] data, int offset, int length)
          Sorts the specified array, using insertion sort algorithm.
static void sort(float[] set)
          Sorts the specified array, using insertion sort algorithm.
static void sort(float[] data, int offset, int length)
          Sorts the specified array, using insertion sort algorithm.
static void sort(int[] set)
          Sorts the specified array, using insertion sort algorithm.
static void sort(int[] data, int offset, int length)
          Sorts the specified array, using insertion sort algorithm.
static void sort(long[] set)
          Sorts the specified array, using insertion sort algorithm.
static void sort(long[] data, int offset, int length)
          Sorts the specified array, using insertion sort algorithm.
static void sort(java.lang.Object[] set, java.util.Comparator comp)
          Sorts the specified array, using insertion sort algorithm.
static void sort(java.lang.Object[] data, int offset, int length, java.util.Comparator comp)
          Sorts the specified array, using insertion sort algorithm.
static void sort(short[] set)
          Sorts the specified array, using insertion sort algorithm.
static void sort(short[] data, int offset, int length)
          Sorts the specified array, using insertion sort algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertionSort

public InsertionSort()
Method Detail

sort

public static void sort(java.lang.Object[] data,
                        int offset,
                        int length,
                        java.util.Comparator comp)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(java.lang.Object[] set,
                        java.util.Comparator comp)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(long[] data,
                        int offset,
                        int length)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(long[] set)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(int[] data,
                        int offset,
                        int length)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(int[] set)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(short[] data,
                        int offset,
                        int length)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(short[] set)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(char[] data,
                        int offset,
                        int length)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(char[] set)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(byte[] data,
                        int offset,
                        int length)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(byte[] set)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(double[] data,
                        int offset,
                        int length)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(double[] set)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(float[] data,
                        int offset,
                        int length)
Sorts the specified array, using insertion sort algorithm.


sort

public static void sort(float[] set)
Sorts the specified array, using insertion sort algorithm.