Class SnakeToCamelCaseRule.Builder
java.lang.Object
com.streamconverter.command.rule.impl.casing.SnakeToCamelCaseRule.Builder
- Enclosing class:
SnakeToCamelCaseRule
Builder class for SnakeToCamelCaseRule configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the SnakeToCamelCaseRule with current configuration.capitalizeFirst
(boolean capitalize) Sets whether to capitalize the first letter (PascalCase instead of camelCase).preserveUnderscores
(boolean preserve) Sets whether to preserve existing underscores in the input.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capitalizeFirst
Sets whether to capitalize the first letter (PascalCase instead of camelCase).- Parameters:
capitalize
- true for PascalCase, false for camelCase- Returns:
- this builder
-
preserveUnderscores
Sets whether to preserve existing underscores in the input.- Parameters:
preserve
- true to preserve underscores, false to clean them up- Returns:
- this builder
-
build
Builds the SnakeToCamelCaseRule with current configuration.- Returns:
- configured rule instance
-