Interface Filter

All Known Implementing Classes:
SizeOfFilterSource

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

    Modifier and Type
    Method
    Description
    void
    Adds a field to the ignore list.
    void
    ignoreInstancesOf(Class clazz, boolean strict)
    Adds the class to the ignore list.
  • Method Details

    • ignoreInstancesOf

      void ignoreInstancesOf(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(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