All Downloads are FREE. Search and download functionalities are using the official Maven repository.

android.text.TextUtils Maven / Gradle / Ivy

There is a newer version: 0.3.3
Show newest version
package android.text;

public class TextUtils {
    /**
     * Returns true if the string is null or 0-length.
     * @param str the string to be examined
     * @return true if str is null or zero length
     */
    public static boolean isEmpty(CharSequence str) {
        if (str == null || str.length() == 0)
            return true;
        else
            return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy