Class SubConfigSerializer<T extends ISubConfig<T,P>,P extends IConfig<P>>

java.lang.Object
net.uku3lig.ukulib.config.serialization.SubConfigSerializer<T,P>
Type Parameters:
T - The type of the config
P - The type of the parent config
All Implemented Interfaces:
ConfigSerializer<T>

public class SubConfigSerializer<T extends ISubConfig<T,P>,P extends IConfig<P>> extends Object implements ConfigSerializer<T>
Manages the serialization of a sub-config, which is stored inside the main config file, under a table.
  • Constructor Details

    • SubConfigSerializer

      public SubConfigSerializer(ConfigManager<P> parentManager, Function<P,T> getter)
      Creates a sub-config serializer
      Parameters:
      parentManager - The manager of the parent config
      getter - The function used to get the sub-config from the parent
  • Method Details