Android String Empty Check isNotBlank(String str)

Here you can find the source of isNotBlank(String str)

Description

is Not Blank

Declaration

public static boolean isNotBlank(String str) 

Method Source Code

import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.text.Html;

public class Main{
    public static boolean isNotBlank(String str) {
        return !StringUtil.isBlank(str);
    }//from w  w w  .j  a v  a2s.  c  om
    public static boolean isBlank(String str) {
        int strLen;
        if (str == null || (strLen = str.length()) == 0
                || "null".equals(str)) {
            return true;
        }
        for (int i = 0; i < strLen; i++) {
            if ((Character.isWhitespace(str.charAt(i)) == false)) {
                return false;
            }
        }
        return true;
    }
}

Related

  1. isBlank(String str)
  2. isBlank(EditText editText)
  3. isBlank(String string)
  4. isBlank(String str)
  5. isBlank(String str)
  6. isBlank(String text)
  7. isEmpty(String input)
  8. isNullOrEmpty(String str)
  9. isEmpty(final String value)