@ApiStatus.Internal public class ConfigIndex extends SectionIndex
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigIndex.Migrator |
static class |
ConfigIndex.MigratorIndex |
| Constructor and Description |
|---|
ConfigIndex(ConfigType configType,
java.lang.Class<?> clazz,
OptConfig optConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMigrator(int from,
int to,
java.lang.Class<? extends ConfigMigrator> migrator) |
java.lang.String[] |
getHeader() |
java.util.Map<ConfigIndex.MigratorIndex,java.lang.Class<? extends ConfigMigrator>> |
getMigrators() |
int |
getVersion() |
ConfigIndex.Migrator |
searchMigrator(ConfigLoader<?> configLoader,
int from,
int to) |
addOption, addSubSection, getClazz, getConfigType, getOption, getOptions, getOptionsOrder, getSubSections, isEmpty, sortOptionspublic ConfigIndex(ConfigType configType, java.lang.Class<?> clazz, OptConfig optConfig)
public int getVersion()
public java.lang.String[] getHeader()
public java.util.Map<ConfigIndex.MigratorIndex,java.lang.Class<? extends ConfigMigrator>> getMigrators()
public void addMigrator(int from,
int to,
java.lang.Class<? extends ConfigMigrator> migrator)
public ConfigIndex.Migrator searchMigrator(ConfigLoader<?> configLoader, int from, int to)