Interface ConfigSerializer<T extends Serializable>

Type Parameters:
T - The type of the config
All Known Implementing Classes:
JsonConfigSerializer, TomlConfigSerializer

public interface ConfigSerializer<T extends Serializable>
Manages the serialization of a configuration file.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deserializes the config.
    Creates a new default configuration.
    void
    serialize(T config)
    Serializes the config.
  • Method Details

    • deserialize

      T deserialize()
      Deserializes the config.
      Returns:
      The deserialized config
    • serialize

      void serialize(T config)
      Serializes the config.
      Parameters:
      config - The config to be serialized.
    • makeDefault

      T makeDefault()
      Creates a new default configuration.
      Returns:
      the default config