If you want to avoid catch the NoSuchMethodException from Yashai's answer :
for (Method ifaceMethod : iface.getMethods()) { if (ifaceMethod.getName().equals(candidate.getName()) && Arrays.equals(ifaceMethod.getParameterTypes(), candidate.getParameterTypes())) { return true; } } return false;
hertzsprung
source share