Android String Empty Check isBlank(EditText editText)

Here you can find the source of isBlank(EditText editText)

Description

is Blank

Declaration

public static final boolean isBlank(EditText editText) 

Method Source Code

//package com.java2s;
import android.widget.EditText;

public class Main {
    public static final boolean isBlank(EditText editText) {
        return editText == null || editText.getText() == null
                || editText.getText().toString() == null
                || editText.getText().toString().trim().equals("");
    }//  w ww  . ja  va2 s. c  o  m

    public static final boolean isBlank(String string) {
        return string == null || string.trim().equals("");
    }
}

Related

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