Package ninja.leaping.configurate.json
Class JSONConfigurationLoader.Builder
java.lang.Object
ninja.leaping.configurate.json.JSONConfigurationLoader.Builder
- Enclosing class:
- JSONConfigurationLoader
public static class JSONConfigurationLoader.Builder extends Object
Builds a
JSONConfigurationLoader.-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder() -
Method Summary
Modifier and Type Method Description @NonNull JSONConfigurationLoaderbuild()@NonNull JsonFactorygetFactory()Gets theJsonFactoryused to configure the implementation.@NonNull FieldValueSeparatorStylegetFieldValueSeparatorStyle()Gets the field value separator style to be used by the resultant loader.intgetIndent()Gets the level of indentation to be used by the resultant loader.@NonNull JSONConfigurationLoader.BuildersetFieldValueSeparatorStyle(@NonNull FieldValueSeparatorStyle style)Sets the field value separator style the resultant loader should use.@NonNull JSONConfigurationLoader.BuildersetIndent(int indent)Sets the level of indentation the resultant loader should use.
-
Constructor Details
-
Method Details
-
getFactory
Gets theJsonFactoryused to configure the implementation.- Returns:
- The json factory
-
setIndent
Sets the level of indentation the resultant loader should use.- Parameters:
indent- The indent level- Returns:
- This builder (for chaining)
-
getIndent
Gets the level of indentation to be used by the resultant loader.- Returns:
- The indent level
-
setFieldValueSeparatorStyle
public @NonNull JSONConfigurationLoader.Builder setFieldValueSeparatorStyle(@NonNull FieldValueSeparatorStyle style)Sets the field value separator style the resultant loader should use.- Parameters:
style- The style- Returns:
- This builder (for chaining)
-
getFieldValueSeparatorStyle
Gets the field value separator style to be used by the resultant loader.- Returns:
- The style
-
build
-