private static boolean contentEquals ( String s , char [ ] chars , int start , int length ) { if ( s . length ( ) != length ) { return false ; } for ( int i = 0 ; i < length ; i ++ ) { if ( chars [ start + i ] != s . charAt ( i ) ) { return false ; } } return true ; }
Content equals .