Java tutorial
//package com.java2s; public class Main { public static boolean isImplementInterface(Class<?> interfaceClass, Class<?> implementClass) { for (Class<?> subClass : implementClass.getInterfaces()) { if (subClass.equals(interfaceClass)) { return true; } } return false; } }