private static enum ModListScreen.SortType extends java.lang.Enum<ModListScreen.SortType> implements java.util.Comparator<ModInfo>
Modifier and Type | Method and Description |
---|---|
int |
compare(ModInfo o1,
ModInfo o2) |
protected int |
compare(java.lang.String name1,
java.lang.String name2) |
(package private) java.lang.String |
getButtonText() |
static ModListScreen.SortType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModListScreen.SortType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModListScreen.SortType NORMAL
public static final ModListScreen.SortType A_TO_Z
public static final ModListScreen.SortType Z_TO_A
Button button
public static ModListScreen.SortType[] values()
for (ModListScreen.SortType c : ModListScreen.SortType.values()) System.out.println(c);
public static ModListScreen.SortType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprotected int compare(java.lang.String name1, java.lang.String name2)
public int compare(ModInfo o1, ModInfo o2)
compare
in interface java.util.Comparator<ModInfo>
java.lang.String getButtonText()