public static boolean isContainsInterface(Class<?> clazz, Class<?> interfaceClass) {
    """
	判断class是否实现了接口类
	
	@param clazz          要判断的类
	@param interfaceClass 接口类
	@return boolean
    """
        Class<?>[] interfaces = clazz.getInterfaces();
        for (int i = 0; i < interfaces.length; i++) {
            Class<?> class1 = interfaces[i];
            if (class1 == interfaceClass) {
                return true;
            }
        }
        return false;
    }
public static boolean isContainsInterface(Class<?> clazz, Class<?> interfaceClass) {
        Class<?>[] interfaces = clazz.getInterfaces();
        for (int i = 0; i < interfaces.length; i++) {
            Class<?> class1 = interfaces[i];
            if (class1 == interfaceClass) {
                return true;
            }
        }
        return false;
    }
public static boolean isContainsInterface ( Class < ? > clazz , Class < ? > interfaceClass ) { Class < ? > [ ] interfaces = clazz . getInterfaces ( ) ; for ( int i = 0 ; i < interfaces . length ; i ++ ) { Class < ? > class1 = interfaces [ i ] ; if ( class1 == interfaceClass ) { return true ; } } return false ; }
判断class是否实现了接口类

@param clazz          要判断的类
@param interfaceClass 接口类
@return boolean
判断class是否实现了接口类