code: public static boolean implementsInterface(Class<?> c, Class<?> i) {
  		if (c == i)
  			return true;
  
  		for (Class<?> x : c.getInterfaces())
  			if (implementsInterface(x, i))
  				return true;
  
  		return false;
  	}
docs: Check whether c implements interface i
  
  @param c
  @param i
  @return