Class JsonConfigOptions


  • public class JsonConfigOptions
    extends xyz.tozymc.configuration.file.option.FileConfigOptions
    Various options for JsonConfig.
    Since:
    1.0
    • Constructor Detail

      • JsonConfigOptions

        public JsonConfigOptions​(@NotNull
                                 @NotNull xyz.tozymc.configuration.file.FileConfig config)
        Creates new JsonConfigOptions for JsonConfig.
        Parameters:
        config - Configuration that owned this options.
    • Method Detail

      • prettyPrint

        public boolean prettyPrint()
        Checks the pretty print is on.
        Returns:
        True is pretty print is on.
      • prettyPrint

        @NotNull
        public @NotNull JsonConfigOptions prettyPrint​(boolean prettyPrint)
        Sets the pretty print options.
        Parameters:
        prettyPrint - New value.
        Returns:
        This object, for chaining.
      • gson

        @NotNull
        public @NotNull com.google.gson.Gson gson()
        Gets the object for json reading and writing.
        Returns:
        The object for json reading and writing.
      • config

        @NotNull
        public @NotNull JsonConfig config()
        Overrides:
        config in class xyz.tozymc.configuration.file.option.FileConfigOptions