Class Options
java.lang.Object
com.github.sttk.stringcase.Options
Is a class that represents options which specifies the ways of case conversion of strings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
Specifies the set of characters not to be treated as word separators and kept in the result string.final boolean
Specifies whether to treat the end of a sequence of non-alphabetical characters as a word boundary.final boolean
Specifies whether to treat the beginning of a sequence of non-alphabetical characters as a word boundary.final String
Specifies the set of characters to be treated as word separators and removed from the result string. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
separateBeforeNonAlphabets
public final boolean separateBeforeNonAlphabetsSpecifies whether to treat the beginning of a sequence of non-alphabetical characters as a word boundary. -
separateAfterNonAlphabets
public final boolean separateAfterNonAlphabetsSpecifies whether to treat the end of a sequence of non-alphabetical characters as a word boundary. -
separators
Specifies the set of characters to be treated as word separators and removed from the result string. -
keep
Specifies the set of characters not to be treated as word separators and kept in the result string.
-
-
Constructor Details
-
Options
public Options(boolean separateBeforeNonAlphabets, boolean separateAfterNonAlphabets, String separators, String keep) The constructor which takes the arguments that specifies the ways of case conversion.- Parameters:
separateBeforeNonAlphabets
- The flag that specifies whether to treat the beginning of a sequence of non-alphabetical characters as a word boundary.separateAfterNonAlphabets
- The flag that specifies whether to treat the end of a sequence of non-alphabetical characters as a word boundary.separators
- The symbol characters to be treated as word separators and removed from the result string.keep
- The symbol characters to be treated as word separators and kept in the result string.
-