All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitnesse.util.StringUtils Maven / Gradle / Ivy

The newest version!
package fitnesse.util;

public class StringUtils {
  public static boolean isBlank(String str) {

    if (str == null)
      return true;

    int strLen = str.length();
    if (strLen == 0)
      return true;

    for (int i = 0; i < strLen; i++) {
      if (!Character.isWhitespace(str.charAt(i))) {
        return false;
      }
    }

    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy