/** * Intercepts a type to simulate delegates. * * @param <T> the type * @param instance the instance to call */ public static <T> T from(final T instance) { return CallInterceptorBuilder.build(instance); }
/** * Define parameters. * * @param type the type class * @param <T> the type */ public static <T> T any(final Class<T> type) { return CallInterceptorBuilder.any(type); }