org.egothor.util.sort
Class QuickSort

java.lang.Object
  extended by org.egothor.util.sort.QuickSort

public class QuickSort
extends java.lang.Object

Author:
Leo Galambos

Constructor Summary
QuickSort(int item_length_bytes, int capacity)
           
 
Method Summary
 long getLong()
           
 int size()
          Size of this QuickSort array in bytes.
 void sort(boolean asc)
          Sort all the data in @{link #membuff} byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickSort

public QuickSort(int item_length_bytes,
                 int capacity)
Method Detail

size

public int size()
Size of this QuickSort array in bytes.


getLong

public final long getLong()
                   throws java.io.IOException
Throws:
java.io.IOException

sort

public void sort(boolean asc)
Sort all the data in @{link #membuff} byte array.

Parameters:
asc - true iff sort by ascending, else descending