public int number ( CharSequence seq ) { StateInfo info = getStateInfo ( seq ) ; return info . isInFinalState ( ) ? info . getHash ( ) : - 1 ; }
Compute the perfect hash code of the given character sequence .