Android String Empty Check isBlank(String str)

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

Description

is Blank

Declaration

public static boolean isBlank(String str) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean isBlank(String str) {
        if (null == str)
            return true;
        if ("".equals(str.trim()))
            return true;

        return false;
    }//from www.j  a  v  a  2 s.  com

    public static boolean isBlank(Long str) {
        if (null == str)
            return true;
        return false;
    }
}

Related

  1. ckIsEmpty(String s)
  2. isEmptyOrNull(String str)
  3. filterString(String string)
  4. isBlank(String s)
  5. isBlank(EditText editText)
  6. isBlank(String string)
  7. isBlank(String str)
  8. isBlank(String str)