public class AssignableToFieldTypeMatcherStrategy extends FieldTypeMatcherStrategy
Constructor and Description |
---|
AssignableToFieldTypeMatcherStrategy(java.lang.Class<?> fieldType) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.reflect.Field field)
A field matcher that checks if a field matches a given criteria.
|
notFound, toString
public AssignableToFieldTypeMatcherStrategy(java.lang.Class<?> fieldType)
public boolean matches(java.lang.reflect.Field field)
FieldMatcherStrategy
matches
in class FieldTypeMatcherStrategy
field
- The field to check whether it matches the strategy or not.true
if this field matches the strategy,
false
otherwise.