Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * Define parameters.
  *
  * @param type the type class
  * @param <T> the type
  */
 public static <T> T any(final Class<T> type) {
   return CallInterceptorBuilder.any(type);
 }