public class Sorter extends java.lang.Object implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private static int |
DELAY |
private ArrayComponent |
panel |
private java.lang.Double[] |
values |
Constructor and Description |
---|
Sorter(java.lang.Double[] values,
ArrayComponent panel)
Constructs the sorter.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
private java.lang.Double[] values
private ArrayComponent panel
private static final int DELAY
public Sorter(java.lang.Double[] values, ArrayComponent panel)
values
- the array to sortpanel
- the panel for displaying the arraypublic void run()
run
in interface java.lang.Runnable