Class StringUtils
java.lang.Object
io.github.torand.openapi2java.utils.StringUtils
A collection of String utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the class base name from specified fully qualified class name.static StringReturns specified values as a comma-delimited string.static StringpluralSuffix(int count) Gets the plural suffix based on specified cardinality.static StringremoveLineBreaks(String value) Returns specified string with line break characters removed.
-
Method Details
-
pluralSuffix
Gets the plural suffix based on specified cardinality.- Parameters:
count- the cardinality.- Returns:
- the plural suffix, or empty string if single count.
-
removeLineBreaks
Returns specified string with line break characters removed.- Parameters:
value- the string to modify.- Returns:
- the modified string.
-
joinCsv
Returns specified values as a comma-delimited string.- Parameters:
values- the values to join.- Returns:
- the joined values.
-
getClassNameFromFqn
Returns the class base name from specified fully qualified class name.- Parameters:
fqn- the fully qualified class name.- Returns:
- the class base name.
-