Android Utililty Methods CharSequence Empty Check

List of utility methods to do CharSequence Empty Check

Description

The list of methods to do CharSequence Empty Check are organized into topic(s).

Method

booleanisEmpty(CharSequence text)
is Empty
if (text != null)
    return isEmpty(text.toString());
return true;
booleanisNotEmpty(final CharSequence cs)
is Not Empty
return !isEmpty(cs);
booleanisEmpty(final CharSequence cs)
is Empty
return cs == null || cs.length() == 0;
booleanisEmpty(CharSequence arg)
is Empty
return arg == null || arg.length() == 0;