Class StringUtils

java.lang.Object
org.sonar.java.checks.helpers.StringUtils

public class StringUtils extends Object
  • Method Details

    • isEmpty

      public static boolean isEmpty(@Nullable String s)
      Check if the string is null or empty.
    • countMatches

      public static int countMatches(@Nullable String string, @Nullable String pattern)
      Count non-overlapping occurrences of pattern in the string.