public final class SortInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SortInfo.Builder |
Constructor and Description |
---|
SortInfo(Class<? extends Sort> sort) |
SortInfo(int id,
Class<? extends Sort> sortClass) |
SortInfo(int id,
Sort sort) |
SortInfo(Sort sort) |
Modifier and Type | Method and Description |
---|---|
static SortInfo.Builder |
builder() |
boolean |
equals(Object obj) |
IntUnaryOperator |
getAnswerValidator() |
static String[] |
getCategories(SortInfo[] sorts) |
String |
getCategory() |
int |
getDefaultAnswer() |
Sort |
getFreshInstance() |
int |
getId() |
Supplier<? extends Sort> |
getInstanceSupplier() |
String |
getInternalName() |
String |
getListName() |
static String[] |
getListNames(SortInfo[] sorts) |
String |
getQuestion() |
String |
getRunAllName() |
String |
getRunName() |
int |
getUnreasonableLimit() |
int |
hashCode() |
boolean |
hasUnreasonableLimit() |
boolean |
isBogoSort() |
boolean |
isBucketSort() |
boolean |
isDisabled() |
boolean |
isFromExtra() |
boolean |
isRadixSort() |
String |
toString() |
int |
validateAnswer(int answer) |
SortInfo |
withId(int id)
Creates a copy of this info with a new ID
|
public int getId()
public String getInternalName()
public boolean isDisabled()
public int getUnreasonableLimit()
public String getListName()
public String getRunName()
public String getRunAllName()
public String getCategory()
public boolean hasUnreasonableLimit()
public boolean isBogoSort()
public boolean isRadixSort()
public boolean isBucketSort()
public String getQuestion()
public int getDefaultAnswer()
public IntUnaryOperator getAnswerValidator()
public Sort getFreshInstance()
public int validateAnswer(int answer)
public boolean isFromExtra()
public SortInfo withId(int id)
id
- The ID for the new instancepublic static SortInfo.Builder builder()
Copyright © 2024. All rights reserved.