public class CaseFormatterConfigurable implements CaseFormatter
A default implementation of the interface CaseFormatter that can be configured using a class CaseFormatterConfig instance.
interface CaseFormatter,
class CaseFormatterConfigpublic CaseFormatterConfigurable(@NotNull
CaseFormatterConfig config)
A default implementation of the interface CaseFormatter that can be configured using a class CaseFormatterConfig instance.
interface CaseFormatter,
class CaseFormatterConfigpublic void formatTo(@NotNull
java.lang.Appendable appendable,
@NotNull
java.lang.Iterable<java.lang.String> words)
Joins words, appending the result to appendable.
If CaseFormatterConfig.wordSplitter isn't null, it will be inserted between each word.
Each word will be converted using one of the rules below (in precedence from highest to lowest):
If CaseFormatterConfig.wordUppercase is true, the word will be converted to uppercase.
If CaseFormatterConfig.firstWordCapitalize is true and the word is first, the word will be capitalized.
If CaseFormatterConfig.wordCapitalize is true, the word will be capitalized.
Otherwise, the word will be converted to lowercase.
words,
appendable