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