Class PassThroughFilter

java.lang.Object
org.ehcache.sizeof.impl.PassThroughFilter
All Implemented Interfaces:
SizeOfFilter

public class PassThroughFilter extends Object implements SizeOfFilter
  • Constructor Details

    • PassThroughFilter

      public PassThroughFilter()
  • Method Details

    • filterFields

      public Collection<Field> filterFields(Class<?> klazz, Collection<Field> fields)
      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(Class<?> klazz)
      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