public static boolean isAllWhitespace ( CharSequence self ) { String s = self . toString ( ) ; for ( int i = 0 ; i < s . length ( ) ; i ++ ) { if ( ! Character . isWhitespace ( s . charAt ( i ) ) ) return false ; } return true ; }
True if a CharSequence only contains whitespace characters .