Class StringUtils

java.lang.Object
com.zfabrik.util.StringUtils

public class StringUtils extends Object
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • isEmpty

      public static final boolean isEmpty(CharSequence s)
    • notEmpty

      public static final boolean notEmpty(CharSequence s)
    • splitString

      public static final List<String> splitString(String s)
    • trimAndNormalizeToNull

      public static String trimAndNormalizeToNull(String s)
      Trims if the argument is not null. returns null, if the argument is null or of zero length after trimming.
      Parameters:
      s -
      Returns:
    • trimTailAndNormalizeToNull

      public static String trimTailAndNormalizeToNull(String s)
      Trims tail of argument if it is not null. returns null, if the argument is null or of zero length after trimming.
      Parameters:
      s -
      Returns:
    • lowerCaseTrimIdentifierAndNormalizeToNull

      public static String lowerCaseTrimIdentifierAndNormalizeToNull(String s)
      remove blanks and normalize to null
      Parameters:
      lowerCase -
      Returns:
    • getString

      public static String getString(ResourceBundle b, String key, Object... args)
      Exception safe getString method for resource bundles. Catches any exception and if so returns the string key with leading and trailing ???