Android String Empty Check isBlank(String string)

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

Description

is Blank

Declaration

public static final boolean isBlank(String string) 

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("");
    }/*  www.  j ava  2  s . c  o m*/

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

Related

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