Class StringUtils


  • public class StringUtils
    extends Object
    Utility class to convert objects into strings in vice-versa.
    • Constructor Detail

      • StringUtils

        public StringUtils()
    • 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 via Character.isWhitespace(char).
        Parameters:
        str - The string to check
        Returns:
        True, if the string is null or blank, false otherwise.
      • convertToCamelCase

        public static String convertToCamelCase​(String str)
        Convert underline and space case to camel case.
        Parameters:
        str - The string to convert
        Returns:
        String which is camel case.