/** * Direct method lookup filtering on exact method name, parameter count and parameter types. * * @return direct method lookup. */ public static MethodLookup direct() { MethodPredicate direct = (invoked, candidate) -> candidate.getName().equals(invoked.getName()) && candidate.getParameterCount() == invoked.getParameterCount() && Arrays.equals(candidate.getParameterTypes(), invoked.getParameterTypes()) && candidate.getReturnType().equals(invoked.getMethod().getReturnType()); return () -> Collections.singletonList(direct); }
/** * Direct method lookup filtering on exact method name, parameter count and parameter types. * * @return direct method lookup. */ public static MethodLookup direct() { MethodPredicate direct = (invoked, candidate) -> candidate.getName().equals(invoked.getName()) && candidate.getParameterCount() == invoked.getParameterCount() && Arrays.equals(candidate.getParameterTypes(), invoked.getParameterTypes()) && candidate.getReturnType().equals(invoked.getMethod().getReturnType()); return () -> Collections.singletonList(direct); }
/** * Direct method lookup filtering on exact method name, parameter count and parameter types. * * @return direct method lookup. */ public static MethodLookup direct() { MethodPredicate direct = (invoked, candidate) -> candidate.getName().equals(invoked.getName()) && candidate.getParameterCount() == invoked.getParameterCount() && Arrays.equals(candidate.getParameterTypes(), invoked.getParameterTypes()) && candidate.getReturnType().equals(invoked.getMethod().getReturnType()); return () -> Collections.singletonList(direct); }
/** * Direct method lookup filtering on exact method name, parameter count and parameter types. * * @return direct method lookup. */ public static MethodLookup direct() { MethodPredicate direct = (invoked, candidate) -> candidate.getName().equals(invoked.getName()) && candidate.getParameterCount() == invoked.getParameterCount() && Arrays.equals(candidate.getParameterTypes(), invoked.getParameterTypes()) && candidate.getReturnType().equals(invoked.getMethod().getReturnType()); return () -> Collections.singletonList(direct); }
/** * Direct method lookup filtering on exact method name, parameter count and parameter types. * * @return direct method lookup. */ public static MethodLookup direct() { MethodPredicate direct = (invoked, candidate) -> candidate.getName().equals(invoked.getName()) && candidate.getParameterCount() == invoked.getParameterCount() && Arrays.equals(candidate.getParameterTypes(), invoked.getParameterTypes()); return () -> Collections.singletonList(direct); }
/** * Direct method lookup filtering on exact method name, parameter count and parameter types. * * @return direct method lookup. */ public static MethodLookup direct() { MethodPredicate direct = (invoked, candidate) -> candidate.getName().equals(invoked.getName()) && candidate.getParameterCount() == invoked.getParameterCount() && Arrays.equals(candidate.getParameterTypes(), invoked.getParameterTypes()); return () -> Collections.singletonList(direct); }