@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface SortMeta
Sort
.Modifier and Type | Optional Element and Description |
---|---|
boolean |
bogoSort
Whether this sort is a bogo sort (i.e.
|
boolean |
bucketSort
Whether this sort uses buckets.
|
String |
category
The sort's category.
|
int |
defaultAnswer
The default response to use for
question() . |
boolean |
disabled
Whether this sort is disabled.
|
String |
listName
Explicit sort list name.
|
String |
name
The sort's name.
|
String |
question
A question to ask the user when they choose this sort.
|
boolean |
radixSort
Whether this sort is a Radix Sort.
|
String |
runName
Explicit Run Sort name.
|
String |
showcaseName
Explicit Showcase Sorts name (and scripting name).
|
boolean |
slowSort
Whether to treat this sort as slow in Showcase Sorts and in sort scripts.
|
int |
unreasonableLimit
This sort's unreasonable limit.
|
public abstract String name
"Something"
or "Something Sort"
. If not
specified, all three of listName()
, runName()
, and showcaseName()
must be specified.public abstract String category
""
if you should look at the package level.public abstract boolean disabled
public abstract int unreasonableLimit
public abstract boolean slowSort
public abstract boolean bogoSort
public abstract boolean radixSort
public abstract boolean bucketSort
public abstract String question
public static int validateAnswer(int answer)
.""
if there isn't one.public abstract int defaultAnswer
question()
. This is used when the user pressed "Use default". This
value is ignored if there is no question. This value is not passed through validatorAnswer
.Copyright © 2024. All rights reserved.