Package org.springframework.util
Interface ReflectionUtils.FieldFilter
- 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 fields to be operated on by a field callback.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ReflectionUtils.FieldFilter
Create a composite filter based on this filter and the provided filter.boolean
Determine whether the given field matches.
-
Method Details
-
matches
Determine whether the given field matches.- Parameters:
field
- the field 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 nextFieldFilter
- Returns:
- a composite
FieldFilter
- Throws:
IllegalArgumentException
- if the FieldFilter argument isnull
- Since:
- 5.3.2
-