public abstract class Sort extends Object
Modifier and Type | Field and Description |
---|---|
protected ArrayVisualizer |
arrayVisualizer |
protected Delays |
Delays |
protected Highlights |
Highlights |
protected Reads |
Reads |
protected Writes |
Writes |
Modifier | Constructor and Description |
---|---|
protected |
Sort(ArrayVisualizer arrayVisualizer) |
Modifier and Type | Method and Description |
---|---|
protected void |
enableSort(boolean enabled)
Deprecated.
Please move to the new
SortMeta API. |
String |
getCategory()
Deprecated.
Please move to the new
SortMeta API. |
int |
getDefaultAnswer()
Deprecated.
Please move to the new
SortMeta API. |
String |
getQuestion()
Deprecated.
Please move to the new
SortMeta API. |
String |
getRunAllSortsName()
Deprecated.
Please move to the new
SortMeta API. |
String |
getRunSortName()
Deprecated.
Please move to the new
SortMeta API. |
String |
getSortListName()
Deprecated.
Please move to the new
SortMeta API. |
int |
getUnreasonableLimit()
Deprecated.
Please move to the new
SortMeta API. |
boolean |
isBogoSort()
Deprecated.
Please move to the new
SortMeta API. |
boolean |
isComparisonBased()
Deprecated.
This method now always returns false, as this information is no longer stored
|
boolean |
isFromExtraSorts()
Deprecated.
Please move to the new
SortMeta API. |
boolean |
isRadixSort()
Deprecated.
Please move to the new
SortMeta API. |
boolean |
isSortEnabled()
Deprecated.
Please move to the new
SortMeta API. |
boolean |
isUnreasonablySlow()
Deprecated.
Please move to the new
SortMeta API. |
abstract void |
runSort(int[] array,
int sortLength,
int bucketCount) |
protected void |
setBogoSort(boolean bogoSort)
Deprecated.
Please move to the new
SortMeta API. |
void |
setBucketSort(boolean bucketSort)
Deprecated.
Please move to the new
SortMeta API. |
protected void |
setCategory(String category)
Deprecated.
Please move to the new
SortMeta API. |
void |
setComparisonBased(boolean comparisonBased)
Deprecated.
This method doesn't do anything, as this information is no longer stored
|
protected void |
setQuestion(String question)
Deprecated.
Please move to the new
SortMeta API. |
protected void |
setQuestion(String question,
int defaultAnswer)
Deprecated.
Please move to the new
SortMeta API. |
protected void |
setRadixSort(boolean radixSort)
Deprecated.
Please move to the new
SortMeta API. |
protected void |
setRunAllSortsName(String showcaseName)
Deprecated.
Please move to the new
SortMeta API. |
protected void |
setRunSortName(String runName)
Deprecated.
Please move to the new
SortMeta API. |
protected void |
setSortListName(String listName)
Deprecated.
Please move to the new
SortMeta API. |
void |
setUnreasonableLimit(int unreasonableLimit)
Deprecated.
Please move to the new
SortMeta API. |
void |
setUnreasonablySlow(boolean unreasonableSlow)
Deprecated.
Please move to the new
SortMeta API. This method also no longer does anything. |
boolean |
usesBuckets()
Deprecated.
Please move to the new
SortMeta API. |
static int |
validateAnswer(int answer) |
protected ArrayVisualizer arrayVisualizer
protected Delays Delays
protected Highlights Highlights
protected Reads Reads
protected Writes Writes
protected Sort(ArrayVisualizer arrayVisualizer)
@Deprecated public boolean isFromExtraSorts()
SortMeta
API.@Deprecated public boolean isSortEnabled()
SortMeta
API.@Deprecated public String getSortListName()
SortMeta
API.@Deprecated public String getRunAllSortsName()
SortMeta
API.@Deprecated public String getRunSortName()
SortMeta
API.@Deprecated public String getCategory()
SortMeta
API.@Deprecated public boolean isComparisonBased()
@Deprecated public boolean usesBuckets()
SortMeta
API.@Deprecated public boolean isRadixSort()
SortMeta
API.@Deprecated public boolean isUnreasonablySlow()
SortMeta
API.@Deprecated public int getUnreasonableLimit()
SortMeta
API.@Deprecated public boolean isBogoSort()
SortMeta
API.@Deprecated public String getQuestion()
SortMeta
API.@Deprecated public int getDefaultAnswer()
SortMeta
API.@Deprecated protected void enableSort(boolean enabled)
SortMeta
API.@Deprecated protected void setSortListName(String listName)
SortMeta
API.@Deprecated protected void setRunAllSortsName(String showcaseName)
SortMeta
API.@Deprecated protected void setRunSortName(String runName)
SortMeta
API.@Deprecated protected void setCategory(String category)
SortMeta
API.@Deprecated public void setComparisonBased(boolean comparisonBased)
comparisonBased
- Whether this sort is a comparison sort or a distribution sort@Deprecated public void setBucketSort(boolean bucketSort)
SortMeta
API.@Deprecated protected void setRadixSort(boolean radixSort)
SortMeta
API.@Deprecated public void setUnreasonablySlow(boolean unreasonableSlow)
SortMeta
API. This method also no longer does anything.@Deprecated public void setUnreasonableLimit(int unreasonableLimit)
SortMeta
API.@Deprecated protected void setBogoSort(boolean bogoSort)
SortMeta
API.@Deprecated protected void setQuestion(String question)
SortMeta
API.@Deprecated protected void setQuestion(String question, int defaultAnswer)
SortMeta
API.public static int validateAnswer(int answer)
Copyright © 2024. All rights reserved.