Android String Empty Check isEmptyOrNull(String string)

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

Description

is Empty Or Null

Declaration

public static boolean isEmptyOrNull(String string) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean isEmptyOrNull(String string) {
        if (string == null) {
            return true;
        }//from ww  w  . ja  va 2s. c  om
        if (string.trim().length() == 0) {
            return true;
        }
        return false;
    }
}

Related

  1. isNullOrEmpty(String str)
  2. isEmpty(final String value)
  3. isEmpty(String s)
  4. isEmpty(String value)
  5. isNotEmpty(String value)
  6. isEmpty(String input)
  7. isNotEmpty(String s)
  8. isEmpty(String string)
  9. isEmptyString(String s)