Class StringUtils

java.lang.Object
net.hironico.common.utils.StringUtils

public class StringUtils extends Object
Utility class for String manipulation operations. Provides helper methods for common string operations.
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • countOccurences

      public static int countOccurences(String src, char theCar)
      Count the number of occurrences of a specific character in a string.
      Parameters:
      src - the source string to search in
      theCar - the character to count
      Returns:
      the number of occurrences of the character, or -1 if src is null
    • isNULL

      public static boolean isNULL(String str)
      Check for "NULL" or "null" or null values of the given string.
      Parameters:
      str - the String to test
      Returns:
      true if considered NULL