|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.core.dataStructure.JbbDataStructure
public class JbbDataStructure
| Method Summary | ||
|---|---|---|
int |
binarySearch(Comparable[] array,
Comparable target)
Standard Binary Search Algorithm. |
|
void |
bubbleSort(Comparable[] arr)
bubble sort. |
|
boolean |
compare(byte[] zArrayIn1,
byte[] zArrayIn2)
|
|
|
concatenate(ArrayList<T> list1,
ArrayList<T> list2)
Generic method that is used to concatenate 2 lists |
|
void |
insertionSort(Comparable[] arr)
insertion sort. |
|
void |
mergeSort(Comparable[] arr)
mergeSort |
|
static JbbDataStructure |
newInstance()
|
|
void |
quickSort(Comparable[] arr)
quicksort |
|
void |
selectionSort(Comparable[] arr)
selection sort. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JbbDataStructure newInstance()
public final <T> ArrayList<T> concatenate(ArrayList<T> list1,
ArrayList<T> list2)
throws Exception
list1 - list2 -
Exception
public final boolean compare(byte[] zArrayIn1,
byte[] zArrayIn2)
zArrayIn1 - zArrayIn2 -
public void insertionSort(Comparable[] arr)
public void bubbleSort(Comparable[] arr)
public void selectionSort(Comparable[] arr)
public void quickSort(Comparable[] arr)
public void mergeSort(Comparable[] arr)
arr -
public int binarySearch(Comparable[] array,
Comparable target)
array - target -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||