public static enum UpdaterSettings.OptionSorting extends Enum<UpdaterSettings.OptionSorting>
| Enum Constant and Description |
|---|
NONE
Does not sort.
|
SORT_BY_DEFAULTS
Sorts options by their order in the defaults.
|
| Modifier and Type | Method and Description |
|---|---|
static UpdaterSettings.OptionSorting |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdaterSettings.OptionSorting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdaterSettings.OptionSorting NONE
This setting does not introduce any additional memory consumption and should be used if the map
implementation defined by GeneralSettings.Builder#setDefaultMap(MapSupplier) doesn't preserve element
order (for example HashMap).
public static final UpdaterSettings.OptionSorting SORT_BY_DEFAULTS
Note that the order depends on the map implementation defined by GeneralSettings.Builder#setDefaultMap(MapSupplier). If the used implementation does not preserve order of
the elements (as they were put into the map), avoid additional memory consumption and use NONE
instead.
public static UpdaterSettings.OptionSorting[] values()
for (UpdaterSettings.OptionSorting c : UpdaterSettings.OptionSorting.values()) System.out.println(c);
public static UpdaterSettings.OptionSorting valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All rights reserved.