Class<T>
T - 由此 Class 对象建模的类的类型。例如,String.class 的类型是 Class<String>。如果将被建模的类未知,则使用 Class<?>。来自API  Class条目

解决方案 »

  1.   

    这个不应该用泛型
      public boolean isInterface(Class<?> c, String szInterface) throws Exception {    if (c == null)
          throw new NullPointerException("Class<?> 'c' is null.");    if (szInterface == null)
          throw new NullPointerException("String 'szInterface' is null.");    Class<?> interfaceType = Class.forName(szInterface);
        if (!interfaceType.isInterface())
          throw new IllegalArgumentException("Type '" + szInterface + "' is not an interface type.");    return interfaceType.isAssignableFrom(c);
      }
    方法名有点怪