Class SettingsBuilder
java.lang.Object
de.eldoria.schematicsanitizer.sanitizer.settings.builder.SettingsBuilder
A builder to create a
Settings
instance-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns aSettings
object.filter
(Consumer<FilterBuilder> filter) Applies the given filter to the SettingsBuilder.limit
(Consumer<LimitBuilder> limit) Sets the limit for a specific setting using a consumer function.
-
Constructor Details
-
SettingsBuilder
public SettingsBuilder()
-
-
Method Details
-
filter
Applies the given filter to the SettingsBuilder.- Parameters:
filter
- A Consumer that accepts a FilterBuilder and applies the filter to it.- Returns:
- The modified SettingsBuilder instance.
-
limit
Sets the limit for a specific setting using a consumer function.- Parameters:
limit
- The consumer function that accepts a LimitBuilder instance for configuring the limit.- Returns:
- The SettingsBuilder instance with the updated limit.
-
build
Builds and returns aSettings
object.- Returns:
- The built
Settings
object.
-