private int findKeyCommentIndex(String keyName){
  for (int i=0; i < keyValComments.size(); i++) {
    String t=keyValComments.get(i);
    String targetedKey="! " + keyName + ": ";
    if (t.startsWith(targetedKey)) {
      return i;
    }
  }
  if (log.isDebugEnabled()) {
    log.debug("Did not find key " + keyName);
  }
  return -1;
}

private int findKeyCommentIndex ( String keyName ) { for ( int i = 0 ; i < keyValComments . size ( ) ; i ++ ) { String t = keyValComments . get ( i ) ; String targetedKey = "! " + keyName + ": " ; if ( t . startsWith ( targetedKey ) ) { return i ; } } if ( log . isDebugEnabled ( ) ) { log . debug ( "Did not find key " + keyName ) ; } return - 1 ; }
finds the index of the specified key within the array containing key / value comments
