Android Utililty Methods String Value Check

List of utility methods to do String Value Check

Description

The list of methods to do String Value Check are organized into topic(s).

Method

booleanisWhitespace(final String s)
Returns true if the specified string consists entirely of whitespace characters.
if (s == null) {
    throw new IllegalArgumentException("String may not be null");
final int len = s.length();
for (int i = 0; i < len; i++) {
    if (!isWhitespace(s.charAt(i))) {
        return false;
return true;