Class JsonConfigBuilder

    • Constructor Detail

      • JsonConfigBuilder

        public JsonConfigBuilder​(@NotNull
                                 @NotNull Path configPath)
        Constructs new file configuration builder with config Path.
        Parameters:
        configPath - The configuration file.
    • Method Detail

      • prettyPrint

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

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

        protected JsonConfig buildConfig()
        Specified by:
        buildConfig in class xyz.tozymc.configuration.file.builder.AbstractFileConfigBuilder<JsonConfig>