Package ninja.leaping.configurate.hocon
Class HoconConfigurationLoader.Builder
- java.lang.Object
-
- ninja.leaping.configurate.hocon.HoconConfigurationLoader.Builder
-
- Enclosing class:
- HoconConfigurationLoader
public static class HoconConfigurationLoader.Builder extends Object
Builds aHoconConfigurationLoader.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull HoconConfigurationLoaderbuild()@NonNull ConfigParseOptionsgetParseOptions()Gets theConfigRenderOptionsto be used by the resultant loader.@NonNull ConfigRenderOptionsgetRenderOptions()Gets theConfigRenderOptionsto be used by the resultant loader.@NonNull HoconConfigurationLoader.BuildersetParseOptions(ConfigParseOptions options)Sets theConfigParseOptionsthe resultant loader should use.@NonNull HoconConfigurationLoader.BuildersetRenderOptions(@NonNull ConfigRenderOptions options)Sets theConfigRenderOptionsthe resultant loader should use.
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
-
Method Detail
-
setRenderOptions
public @NonNull HoconConfigurationLoader.Builder setRenderOptions(@NonNull ConfigRenderOptions options)
Sets theConfigRenderOptionsthe resultant loader should use.- Parameters:
options- The render options- Returns:
- This builder (for chaining)
-
getRenderOptions
public @NonNull ConfigRenderOptions getRenderOptions()
Gets theConfigRenderOptionsto be used by the resultant loader.- Returns:
- The render options
-
setParseOptions
public @NonNull HoconConfigurationLoader.Builder setParseOptions(ConfigParseOptions options)
Sets theConfigParseOptionsthe resultant loader should use.- Parameters:
options- The parse options- Returns:
- This builder (for chaining)
-
getParseOptions
public @NonNull ConfigParseOptions getParseOptions()
Gets theConfigRenderOptionsto be used by the resultant loader.- Returns:
- The render options
-
build
public @NonNull HoconConfigurationLoader build()
-
-