Android String Empty Check isEmpty(String str)

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

Description

is Empty

Parameter

Parameter Description
str a parameter

Declaration

public static boolean isEmpty(String str) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from  w ww.  j  a  v  a2s  .co m
     * 
     * @Description:
     * @param str
     * @return
     * @see: 
     * @since: 
     * @author: huangyx2
     * @date:2013-7-24
     */
    public static boolean isEmpty(String str) {
        return str == null || str.length() == 0;
    }
}

Related

  1. toNullIfEmpty(String string)
  2. isNullOrEmptyOrOnlyWhitespaces(String string)
  3. nullToEmpty(String url)
  4. isEmpty(String s)
  5. isEmpty(String s)
  6. trimToEmpty(String str)
  7. isEmpty(String string)
  8. isEmptyString(String str)
  9. isEmptyString(String str)