Android String Empty Check isEmptyOrNull(String str)

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

Description

is Empty Or Null

License

Open Source License

Declaration

public static boolean isEmptyOrNull(String str) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isEmptyOrNull(String str) {
        return str == null || str.length() == 0
                || str.contentEquals("null") || str.trim().equals("");
    }//from w ww .  j  av a2s . co  m
}

Related

  1. isEmptyOrNull(String string)
  2. isEmpty(String input)
  3. isNotEmpty(String s)
  4. isEmpty(String string)
  5. isEmptyString(String s)
  6. toNullIfEmptyOrWhitespace(String string)
  7. toNullIfEmpty(String string)
  8. isNullOrEmptyOrOnlyWhitespaces(String string)
  9. nullToEmpty(String url)