Package org.ehcache.sizeof
Interface Filter
- All Known Implementing Classes:
SizeOfFilterSource
public interface Filter
Filters all the sizing operation performed by a SizeOfEngine instance
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ignoreField
(Field field) Adds a field to the ignore list.void
ignoreInstancesOf
(Class clazz, boolean strict) Adds the class to the ignore list.
-
Method Details
-
ignoreInstancesOf
Adds the class to the ignore list. Can be strict, or include subtypes- Parameters:
clazz
- the class to ignorestrict
- true if to be ignored strictly, or false to include sub-classes
-
ignoreField
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
-