Class JsonConfig

java.lang.Object
fr.alasdiablo.diolib.api.config.JsonConfig
Direct Known Subclasses:
AngerConfig, FireworkEventConfig

public abstract class JsonConfig extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract String
     
    protected abstract void
    read(com.google.gson.JsonObject json)
    Processes this json file
    protected abstract com.google.gson.JsonObject
    Create the json object need to be written in the config directory

    Methods inherited from class java.lang.Object

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

    • JsonConfig

      public JsonConfig()
  • Method Details

    • read

      protected abstract void read(com.google.gson.JsonObject json)
      Processes this json file
      Parameters:
      json - Json file need to be processes
    • write

      protected abstract com.google.gson.JsonObject write()
      Create the json object need to be written in the config directory
      Returns:
      JsonObject need to be written
    • getName

      protected abstract String getName()