Code example for FieldAttributes

Methods: getAnnotation

0
 
public class EmptyFieldExclusionStrategy implements ExclusionStrategy {
 
    @Override 
    public boolean shouldSkipField(FieldAttributes fieldAttributes) {
        if (fieldAttributes.getAnnotation(Param.class) != null) {
                return true; 
        } 
        return false; 
    } 
 
    @Override 
    public boolean shouldSkipClass(Class<?> aClass) {
        return false; 
    } 
}