Code example for FieldAttributes

Methods: getAnnotation

0
    public boolean shouldSkipClass(Class<?> clazz) {
        return (clazz == typeToSkip);
    } 
 
    public boolean shouldSkipField(FieldAttributes f) {
        return f.getAnnotation(DoNotSerializePolicy.class) != null;
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java