Class StringUtil

java.lang.Object
eu.c6.gibraltar.api.common.StringUtil

public class StringUtil extends Object
  • Constructor Details

    • StringUtil

      public StringUtil()
  • Method Details

    • isNullOrEmpty

      public static boolean isNullOrEmpty(String str)
      Check if a string is null or empty.
      Parameters:
      str - String to check.
      Returns:
      true if the string is null or empty.
    • replaceAll

      public static String replaceAll(String data, String find, String replace)
      Replace into the string data each occurence of find with replace value.
      Parameters:
      data - String to analyze.
      find - String to find.
      replace - String to reaplace each occurrence found of find.
      Returns:
      Sting data processed.