public static final boolean parseBoolean ( CharSequence cs , int beginIndex , int endIndex ) { return endIndex - beginIndex == 4 && Character . codePointCount ( cs , beginIndex , endIndex ) == 4 && Character . toUpperCase ( Character . codePointAt ( cs , beginIndex ) ) == ' ' && Character . toUpperCase ( Character . codePointAt ( cs , beginIndex + 1 ) ) == ' ' && Character . toUpperCase ( Character . codePointAt ( cs , beginIndex + 2 ) ) == ' ' && Character . toUpperCase ( Character . codePointAt ( cs , beginIndex + 3 ) ) == ' ' ; }
Parses the char sequence argument as a boolean . The boolean returned represents the value true if the char sequence argument is not null and is equal ignoring case to the string true .