- java.lang.Object
-
- xyz.tozymc.configuration.option.TcConfigOptions
-
- xyz.tozymc.configuration.file.option.FileConfigOptions
-
- xyz.tozymc.configuration.json.option.JsonConfigOptions
-
public class JsonConfigOptions extends xyz.tozymc.configuration.file.option.FileConfigOptionsVarious options forJsonConfig.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description JsonConfigOptions(@NotNull xyz.tozymc.configuration.file.FileConfig config)Creates newJsonConfigOptionsforJsonConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull JsonConfigconfig()@NotNull com.google.gson.Gsongson()Gets the object for json reading and writing.booleanprettyPrint()Checks the pretty print is on.@NotNull JsonConfigOptionsprettyPrint(boolean prettyPrint)Sets the pretty print options.-
Methods inherited from class xyz.tozymc.configuration.file.option.FileConfigOptions
reloadType, reloadType
-
-
-
-
Constructor Detail
-
JsonConfigOptions
public JsonConfigOptions(@NotNull @NotNull xyz.tozymc.configuration.file.FileConfig config)
Creates newJsonConfigOptionsforJsonConfig.- 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:
configin classxyz.tozymc.configuration.file.option.FileConfigOptions
-
-