public static boolean nameEquals(char[][] typeName,String string){
  StringBuilder sb=new StringBuilder();
  boolean first=true;
  for (  char[] elem : typeName) {
    if (first)     first=false;
 else     sb.append('.');
    sb.append(elem);
  }
  return string.contentEquals(sb);
}

public static boolean nameEquals ( char [ ] [ ] typeName , String string ) { StringBuilder sb = new StringBuilder ( ) ; boolean first = true ; for ( char [ ] elem : typeName ) { if ( first ) first = false ; else sb . append ( '.' ) ; sb . append ( elem ) ; } return string . contentEquals ( sb ) ; }
checks if an eclipse - style array - of - array - of - characters to represent a fully qualified name ( ' foo . bar . baz ' ) , matches a plain string containing the same fully qualified name with dots in the string .
