Interface JsonConfigurableInterface<T>

    • Method Detail

      • saveConfig

        default void saveConfig()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • loadConfig

        default void loadConfig()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • saveConfig

        default void saveConfig​(com.google.gson.Gson gson,
                                java.nio.file.Path configPath)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • toJsonString

        default java.lang.String toJsonString​(com.google.gson.Gson gson)
      • toJsonString

        default java.lang.String toJsonString()
      • loadConfig

        default void loadConfig​(com.google.gson.Gson gson,
                                java.nio.file.Path configPath)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • saveConfig

        default void saveConfig​(java.nio.file.Path configPath)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • loadConfig

        default void loadConfig​(java.nio.file.Path configPath)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • resetConfig

        default void resetConfig()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • resetConfig

        default void resetConfig​(java.nio.file.Path newPath)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • generateConfigIfNotExists

        default boolean generateConfigIfNotExists​(java.nio.file.Path path)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • generateConfigIfNotExists

        default boolean generateConfigIfNotExists()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getConfig

        T getConfig()
      • setConfig

        void setConfig​(T config)
      • getDefaultConfig

        T getDefaultConfig()
      • getPath

        java.nio.file.Path getPath()
      • getType

        java.lang.reflect.Type getType()