public class AnnotatedFieldGsonExclusionStrategy<AnnotationT extends Annotation> extends Object implements com.google.gson.ExclusionStrategy
ExclusionStrategy
excluding all fields annotated with the given annotation.Constructor and Description |
---|
AnnotatedFieldGsonExclusionStrategy(Class<AnnotationT> annotationClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldSkipClass(Class<?> cls) |
boolean |
shouldSkipField(com.google.gson.FieldAttributes fieldAttributes) |
@ConstructorProperties(value="annotationClass") @Generated(value="lombok") public AnnotatedFieldGsonExclusionStrategy(Class<AnnotationT> annotationClass)
public boolean shouldSkipField(com.google.gson.FieldAttributes fieldAttributes)
shouldSkipField
in interface com.google.gson.ExclusionStrategy
public boolean shouldSkipClass(Class<?> cls)
shouldSkipClass
in interface com.google.gson.ExclusionStrategy
Copyright © 2017 SAP SE. All rights reserved.