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

java.lang.Object
eu.okaeri.configs.OkaeriConfig
xyz.srnyx.annoyingapi.file.okaeri.AnnoyingConfig
xyz.srnyx.annoyingapi.file.okaeri.SubConfig<R,P>
Type Parameters:
R - The top-level root config
P - The defaults parent
Direct Known Subclasses:
AnnoyingMessages.Error, AnnoyingMessages.Plugin, AnnoyingMessages.Plugin.Splitters, StorageConfig.Cache, StorageConfig.RemoteConnection

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

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

    Modifier and Type
    Method
    Description
    This is only non-null for defaults
     
    @NotNull SubConfig<R,P>
     

    Methods inherited from class xyz.srnyx.annoyingapi.file.okaeri.AnnoyingConfig

    getAs

    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 P defaultsParent)
      Okaeri Configs will do an "unsafe" initialization with default constructor (no args) for non-default value
  • Method Details

    • getParent

      @NotNull public P getParent()
      This is only non-null for defaults
    • getRoot

      @NotNull public R getRoot()
    • save

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