Package org.springframework.util
Interface ReflectionUtils.MethodFilter
- Enclosing class:
- ReflectionUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback optionally used to filter methods to be operated on by a method callback.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ReflectionUtils.MethodFilter
Create a composite filter based on this filter and the provided filter.boolean
Determine whether the given method matches.
-
Method Details
-
matches
Determine whether the given method matches.- Parameters:
method
- the method to check
-
and
Create a composite filter based on this filter and the provided filter.If this filter does not match, the next filter will not be applied.
- Parameters:
next
- the nextMethodFilter
- Returns:
- a composite
MethodFilter
- Throws:
IllegalArgumentException
- if the MethodFilter argument isnull
- Since:
- 5.3.2
-