Package com.tngtech.jgiven.impl.util
Class WordUtil
java.lang.Object
com.tngtech.jgiven.impl.util.WordUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringcamelCaseToCapitalizedReadableText(String camelCase) static StringcamelCaseToReadableText(String camelCase) static Stringcapitalize(String text) Returns the given text with the first letter in upper case.static StringfromSnakeCase(String name) static booleanisAllUpperCase(String name) static StringlowerCaseFirstChar(String text) static StringsplitCamelCaseToReadableText(String camelCase)
-
Method Details
-
capitalize
Returns the given text with the first letter in upper case.Examples:
capitalize("hi") == "Hi" capitalize("Hi") == "Hi" capitalize("hi there") == "hi there" capitalize("") == "" capitalize(null) == null- Parameters:
text- the text to capitalize- Returns:
- text with the first letter in upper case
-
lowerCaseFirstChar
-
camelCase
-
splitCamelCaseToReadableText
-
camelCaseToCapitalizedReadableText
-
camelCaseToReadableText
-
fromSnakeCase
-
isAllUpperCase
-