bass.util
Class SortHashtable

java.lang.Object
  extended by bass.util.SortHashtable

public class SortHashtable
extends java.lang.Object

offers various methods for sorting the result hashtable from the suggestion tool result lists

Version:
0.1
Author:
Thomas Klein

Constructor Summary
SortHashtable()
           
 
Method Summary
static java.lang.Object[][] bubbleSort(java.util.Hashtable<java.lang.Integer,DTO_BandWithPoints> input)
          a simple bubble sort
static java.lang.Object[][] dbSort(java.util.Hashtable<java.lang.Integer,DTO_BandWithPoints> input)
          a sort using a temp table at the embedded db to prevent java heap overflows ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortHashtable

public SortHashtable()
Method Detail

bubbleSort

public static java.lang.Object[][] bubbleSort(java.util.Hashtable<java.lang.Integer,DTO_BandWithPoints> input)
a simple bubble sort

Parameters:
input - the hashtable from the suggestion tool results
Returns:
an object array, ordered by points descending.
array[pos][0] = hashtable key (id)
array[pos][1] = DTO

dbSort

public static java.lang.Object[][] dbSort(java.util.Hashtable<java.lang.Integer,DTO_BandWithPoints> input)
a sort using a temp table at the embedded db to prevent java heap overflows ...

Parameters:
input - the hashtable from the suggestion tool results
Returns:
an object array, ordered by points descending.
array[pos][0] = null
array[pos][1] = DTO