class DoubleBubbleSorter extends BubbleSorter
Modifier and Type | Field and Description |
---|---|
private double[] |
array |
length
Constructor and Description |
---|
DoubleBubbleSorter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
outOfOrder(int index) |
int |
sort(double[] array) |
protected void |
swap(int index) |
doSort
private double[] array
DoubleBubbleSorter()
public int sort(double[] array)
protected void swap(int index)
swap
in class BubbleSorter
protected boolean outOfOrder(int index)
outOfOrder
in class BubbleSorter