Interface EasyLookup.MethodPredicate

Enclosing class:
EasyLookup
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EasyLookup.MethodPredicate
Boolean valued function to compare a method with return and parameter types.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(Method method, Class<?> returnType, Class<?>[] parameterTypes)
    Eval this predicate with current arguments.
  • Method Details

    • test

      boolean test(Method method, Class<?> returnType, Class<?>[] parameterTypes)
      Eval this predicate with current arguments.
      Parameters:
      method - method to compare.
      returnType - method return type.
      parameterTypes - method parameter types as array.
      Returns:
      true if method matches.