java.lang.Object
com.github.siroshun09.configapi.format.gson.GsonFormat
All Implemented Interfaces:
FileFormat<MapNode>

public final class GsonFormat extends Object implements FileFormat<MapNode>
A FileFormat implementation that loading/saving MapNode from/to json files using Gson.

Supported Nodes:

  • Field Details

    • DEFAULT

      public static final GsonFormat DEFAULT
      An instance of GsonFormat that created from a plain GsonBuilder.
    • PRETTY_PRINTING

      public static final GsonFormat PRETTY_PRINTING
      An instance of GsonFormat that created from a GsonBuilder that set pretty printing.
  • Constructor Details

    • GsonFormat

      public GsonFormat(@NotNull @NotNull com.google.gson.GsonBuilder gsonBuilder)
      Creates a new GsonFormat from the GsonBuilder.
      Parameters:
      gsonBuilder - the GsonBuilder
  • Method Details