Code example for Field

Methods: getType

0
        super(fieldType);
    } 
 
    @Override 
    public boolean matches(Field field) {
        return expectedFieldType.isAssignableFrom((Class<?>) field.getType());
    } 
}