Class TypeFilter

    • Constructor Summary

      Constructors 
      Constructor Description
      TypeFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addClass​(java.lang.Class<?> classToFilterOut, boolean strict)  
      void addField​(java.lang.reflect.Field fieldToFilterOut)  
      boolean filterClass​(java.lang.Class<?> klazz)
      Checks whether the type needs to be filtered
      java.util.Collection<java.lang.reflect.Field> filterFields​(java.lang.Class<?> klazz, java.util.Collection<java.lang.reflect.Field> fields)
      Returns the fields to walk and measure for a type
      • Methods inherited from class java.lang.Object

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

      • fieldsIgnored

        private final WeakIdentityConcurrentMap<java.lang.Class<?>,​java.util.concurrent.ConcurrentMap<java.lang.reflect.Field,​java.lang.Object>> fieldsIgnored
    • Constructor Detail

      • TypeFilter

        public TypeFilter()
    • Method Detail

      • filterFields

        public java.util.Collection<java.lang.reflect.Field> filterFields​(java.lang.Class<?> klazz,
                                                                          java.util.Collection<java.lang.reflect.Field> fields)
        Description copied from interface: SizeOfFilter
        Returns the fields to walk and measure for a type
        Specified by:
        filterFields in interface SizeOfFilter
        Parameters:
        klazz - the type
        fields - the fields already "qualified"
        Returns:
        the filtered Set
      • filterClass

        public boolean filterClass​(java.lang.Class<?> klazz)
        Description copied from interface: SizeOfFilter
        Checks whether the type needs to be filtered
        Specified by:
        filterClass in interface SizeOfFilter
        Parameters:
        klazz - the type
        Returns:
        true, if to be filtered out
      • addClass

        public void addClass​(java.lang.Class<?> classToFilterOut,
                             boolean strict)
      • addField

        public void addField​(java.lang.reflect.Field fieldToFilterOut)