Class StringUtils
- java.lang.Object
-
- org.apache.flink.cdc.common.utils.StringUtils
-
public class StringUtils extends Object
Utility class to convert objects into strings in vice-versa.
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringconvertToCamelCase(String str)Convert underline and space case to camel case.static booleanisNullOrWhitespaceOnly(String str)Checks if the string is null, empty, or contains only whitespace characters.
-
-
-
Method Detail
-
isNullOrWhitespaceOnly
public static boolean isNullOrWhitespaceOnly(String str)
Checks if the string is null, empty, or contains only whitespace characters. A whitespace character is defined viaCharacter.isWhitespace(char).- Parameters:
str- The string to check- Returns:
- True, if the string is null or blank, false otherwise.
-
-