public static boolean matchesTypeName(Class<?> clazz,String typeName){
  return (typeName != null && (typeName.equals(clazz.getName()) || typeName.equals(clazz.getSimpleName()) || (clazz.isArray() && typeName.equals(getQualifiedNameForArray(clazz)))));
}

public static boolean matchesTypeName ( Class < ? > clazz , String typeName ) { return ( typeName != null && ( typeName . equals ( clazz . getName ( ) ) || typeName . equals ( clazz . getSimpleName ( ) ) || ( clazz . isArray ( ) && typeName . equals ( getQualifiedNameForArray ( clazz ) ) ) ) ) ; }
check whether the given class matches the user - specified type name .
