public static boolean returnTypeIs ( final Method m , final Class < ? > clazz ) { return clazz . equals ( toClass ( m . getGenericReturnType ( ) ) ) ; }
Whether the method return type matches the supplied type .