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