Class SubConfig<R extends eu.okaeri.configs.OkaeriConfig>

java.lang.Object
eu.okaeri.configs.OkaeriConfig
xyz.srnyx.annoyingapi.file.okaeri.SubConfig<R>
Direct Known Subclasses:
AnnoyingMessages.Error, AnnoyingMessages.Plugin, AnnoyingMessages.Plugin.Splitters, StorageConfig.Cache, StorageConfig.RemoteConnection

public class SubConfig<R extends eu.okaeri.configs.OkaeriConfig> extends eu.okaeri.configs.OkaeriConfig
  • Constructor Summary

    Constructors
    Constructor
    Description
    SubConfig(R root)
    Okaeri Configs will do an "unsafe" initialization with default constructor (no args) for non-default value
  • Method Summary

    Modifier and Type
    Method
    Description
    Try the defaults-available root first, then the context root.
    @NotNull SubConfig<R>
     

    Methods inherited from class eu.okaeri.configs.OkaeriConfig

    asMap, asMap, asMap, configure, get, get, get, getBindFile, getBindFileName, getConfigurer, getContext, getDeclaration, getEffectiveConfigurer, getInternalPath, getInternalState, isSubconfig, load, load, load, load, load, load, load, load, load, migrate, migrate, migrateInternalState, migrateInternalState, save, save, save, saveDefaults, saveToBytes, saveToString, set, setBindFile, setConfigurer, setContext, setDeclaration, setInternalPath, setInternalState, update, updateDeclaration, validate, withBindFile, withBindFile, withBindFile, withConfigurer, withConfigurer, withLogger, withRemoveOrphans, withSerdesPack

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SubConfig

      public SubConfig(@NotNull R root)
      Okaeri Configs will do an "unsafe" initialization with default constructor (no args) for non-default value
  • Method Details

    • getRoot

      @NotNull public R getRoot()
      Try the defaults-available root first, then the context root.
      At least one of them should be non-null!
    • save

      @NotNull public @NotNull SubConfig<R> save()
      Overrides:
      save in class eu.okaeri.configs.OkaeriConfig