private static int checkChar ( final char c , final String signature , int pos ) { if ( getChar ( signature , pos ) == c ) { return pos + 1 ; } throw new IllegalArgumentException ( signature + ": '" + c + "' expected at index " + pos ) ; }
Checks a single character .