Class GenericMapClassFieldsExclusionStrategy

  • All Implemented Interfaces:
    com.google.gson.ExclusionStrategy

    public class GenericMapClassFieldsExclusionStrategy
    extends java.lang.Object
    implements com.google.gson.ExclusionStrategy
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericMapClassFieldsExclusionStrategy​(java.util.Map<java.lang.Class<?>,​java.util.Set<java.lang.String>> excludeFieldsDefinition)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldSkipClass​(java.lang.Class<?> clazz)  
      boolean shouldSkipField​(com.google.gson.FieldAttributes field)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericMapClassFieldsExclusionStrategy

        public GenericMapClassFieldsExclusionStrategy​(java.util.Map<java.lang.Class<?>,​java.util.Set<java.lang.String>> excludeFieldsDefinition)
    • Method Detail

      • shouldSkipField

        public boolean shouldSkipField​(com.google.gson.FieldAttributes field)
        Specified by:
        shouldSkipField in interface com.google.gson.ExclusionStrategy
      • shouldSkipClass

        public boolean shouldSkipClass​(java.lang.Class<?> clazz)
        Specified by:
        shouldSkipClass in interface com.google.gson.ExclusionStrategy