Interface Filter

  • All Known Implementing Classes:
    SizeOfFilterSource

    public interface Filter
    Filters all the sizing operation performed by a SizeOfEngine instance
    • Method Detail

      • ignoreInstancesOf

        void ignoreInstancesOf​(java.lang.Class clazz,
                               boolean strict)
        Adds the class to the ignore list. Can be strict, or include subtypes
        Parameters:
        clazz - the class to ignore
        strict - true if to be ignored strictly, or false to include sub-classes
      • ignoreField

        void ignoreField​(java.lang.reflect.Field field)
        Adds a field to the ignore list. When that field is walked to by the SizeOfEngine, it won't navigate the graph further
        Parameters:
        field - the field to stop navigating the graph at