Android String Empty Check emptyOrNull(String... arrStr)

Here you can find the source of emptyOrNull(String... arrStr)

Description

empty Or Null

Declaration

public static boolean emptyOrNull(String... arrStr) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean emptyOrNull(String str) {
        return str == null || str.length() == 0;
    }/*from ww  w. j  av a  2  s .  com*/

    public static boolean emptyOrNull(String... arrStr) {
        for (String str : arrStr) {
            if (emptyOrNull(str)) {
                return true;
            }
        }
        return false;
    }
}

Related

  1. isEmptyString(String str)
  2. isEmptyString(String str)
  3. isNullOrEmpty(CharSequence any)
  4. isNullOrEmpty(String s)
  5. emptyOrNull(String str)
  6. isBlank(String str)
  7. isEmpty(String input)
  8. isNotNull(String str)
  9. stringBlank(String s)